Make cookie expiration timer work correctly....
This commit is contained in:
+1
-1
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user