Make cookie expiration timer work correctly....

This commit is contained in:
alexhudson
2010-07-17 16:44:18 +00:00
parent dd03ea6e6a
commit dbc23d9db6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ EXPORT void MsgAuthUserListFree(char **list[]);
// Auth / cookie functions
#define MSGAUTH_COOKIE_LEN 32
#define MSGAUTH_COOKIE_LEN XPLHASH_MD5_LENGTH + 1
typedef struct {
char token[MSGAUTH_COOKIE_LEN];
+1 -1
View File
@@ -39,7 +39,7 @@ StoreCommandCOOKIENEW(StoreClient *client, uint64_t timeout)
if (MsgAuthCreateCookie(client->principal.name, &cookie, timeout)) {
ccode = ConnWriteF(client->conn, "1000 %.32s\r\n", cookie.token);
} else {
ccode = ConnWriteStr(client->conn, MSG5004INTERNALERR);
ccode = ConnWriteStr(client->conn, MSG5004INTERNALERR);
}
return ccode;