Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libgaim/protocols/novell/nmuser.c Tue Nov 07 07:21:27 2006 +0000 +++ b/libgaim/protocols/novell/nmuser.c Tue Nov 07 17:52:01 2006 +0000 @@ -1526,9 +1526,9 @@ for (node = list; node; node = node->next) { if (nm_utf8_str_equal(nm_user_record_get_dn(user_record), (const char *) node->data)) { + g_free(node->data); list = g_slist_remove(list, node->data); nm_request_set_user_define(request, list); - g_free(node->data); break; } }