Correctly calculate expiry time in daemon cookies.

This commit is contained in:
alexhudson
2009-09-16 20:28:15 +00:00
parent 709e9dc9c8
commit d5bc7faceb
+1 -1
View File
@@ -44,7 +44,7 @@ MsgAuthCreateCookie(const char *username, MsgAuthCookie *cookie, uint64_t timeou
xpl_hash_context context;
// create the cookie
cookie->expiration = timeout;
cookie->expiration = time(NULL) + timeout;
XplHashNew(&context, XPLHASH_MD5);
snprintf(cookie->token, sizeof(cookie->token), "%x%x",