Author: tridge Date: 2006-04-12 09:38:07 +0000 (Wed, 12 Apr 2006) New Revision: 15050
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15050 Log: fixed a double free in the new messaging code. Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c Changeset: Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c =================================================================== --- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 06:08:24 UTC (rev 15049) +++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 09:38:07 UTC (rev 15050) @@ -364,12 +364,12 @@ } /* the list base possibly changed */ - if (list == NULL) { - if (msg_type >= msg->num_types) { + if (msg_type >= msg->num_types) { + if (list == NULL) { idr_remove(msg->dispatch_tree, msg_type); - } else { - msg->dispatch[msg_type] = NULL; } + } else { + msg->dispatch[msg_type] = list; } }