From: Art Cancro Date: Sun, 11 Oct 2009 03:33:51 +0000 (+0000) Subject: * Checked in some test code and logging to determine whether a bad cast/copy is the... X-Git-Tag: v7.86~776 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=42bbd7bbac12ceb76019f18b1c0c38b9f42c918e * Checked in some test code and logging to determine whether a bad cast/copy is the source of an openid bug --- diff --git a/citadel/modules/expire/serv_expire.c b/citadel/modules/expire/serv_expire.c index dd994e3b0..32b6d270c 100644 --- a/citadel/modules/expire/serv_expire.c +++ b/citadel/modules/expire/serv_expire.c @@ -816,6 +816,13 @@ int PurgeStaleOpenIDassociations(void) { if (cdboi->len > sizeof(long)) { long usernum; usernum = ((long)*(cdboi->ptr)); + /* FIXME two different things here, trying to figure out whether this is the + * source of a bug. + */ + CtdlLogPrintf(CTDL_DEBUG, "#1 Evaluating openid association for user %ld\n", usernum); + usernum = 0; + memcpy(&usernum, cdboi->ptr, sizeof(long)); + CtdlLogPrintf(CTDL_DEBUG, "#2 Evaluating openid association for user %ld\n", usernum); if (getuserbynumber(&usbuf, usernum) != 0) { deleteme = strdup(cdboi->ptr + sizeof(long)), Put(keys, deleteme, strlen(deleteme), deleteme, generic_free_handler);