comparison src/protocols/oscar/email.c @ 10996:acbd980d6179

[gaim-migrate @ 12837] I hope cookie16 is always 16 bytes. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Jun 2005 05:08:51 +0000
parents 92cbf9713795
children
comparison
equal deleted inserted replaced
10995:1e6c33ffb8f5 10996:acbd980d6179
86 86
87 cookie8 = aimbs_getraw(bs, 8); /* Possibly the code used to log you in to mail? */ 87 cookie8 = aimbs_getraw(bs, 8); /* Possibly the code used to log you in to mail? */
88 cookie16 = aimbs_getraw(bs, 16); /* Mail cookie sent above */ 88 cookie16 = aimbs_getraw(bs, 16); /* Mail cookie sent above */
89 89
90 /* See if we already have some info associated with this cookie */ 90 /* See if we already have some info associated with this cookie */
91 for (new=sess->emailinfo; (new && strncmp(cookie16, new->cookie16, 16)); new=new->next); 91 for (new = sess->emailinfo; (new && memcmp(cookie16, new->cookie16, 16)); new = new->next);
92 if (new) { 92 if (new) {
93 /* Free some of the old info, if it exists */ 93 /* Free some of the old info, if it exists */
94 free(new->cookie8); 94 free(new->cookie8);
95 free(new->cookie16); 95 free(new->cookie16);
96 free(new->url); 96 free(new->url);