Mercurial > pidgin
comparison libgaim/protocols/novell/nmuser.c @ 14924:71c764f2b1a6
[gaim-migrate @ 17696]
sf patch #1592081, from Stanislav Brabec
"fix of possible crash (access memory after g_slist_remove())"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 07 Nov 2006 17:52:01 +0000 |
parents | 897d2d09787e |
children | 89ae31668a9c |
comparison
equal
deleted
inserted
replaced
14923:589c4aaa0435 | 14924:71c764f2b1a6 |
---|---|
1524 | 1524 |
1525 /* Find the user in the list and remove it */ | 1525 /* Find the user in the list and remove it */ |
1526 for (node = list; node; node = node->next) { | 1526 for (node = list; node; node = node->next) { |
1527 if (nm_utf8_str_equal(nm_user_record_get_dn(user_record), | 1527 if (nm_utf8_str_equal(nm_user_record_get_dn(user_record), |
1528 (const char *) node->data)) { | 1528 (const char *) node->data)) { |
1529 g_free(node->data); | |
1529 list = g_slist_remove(list, node->data); | 1530 list = g_slist_remove(list, node->data); |
1530 nm_request_set_user_define(request, list); | 1531 nm_request_set_user_define(request, list); |
1531 g_free(node->data); | |
1532 break; | 1532 break; |
1533 } | 1533 } |
1534 } | 1534 } |
1535 | 1535 |
1536 /* Time to callback? */ | 1536 /* Time to callback? */ |