mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
r12946: fix a segfault in nmbd when 'wins support = yes' caused by double free
(This used to be commit c11372f4ec49634e2ae2e6b9ddf4d2b72976f9c5)
This commit is contained in:
parent
bfc2bf8178
commit
4c7b4cd33a
@ -82,9 +82,11 @@ void remove_name_from_namelist(struct subnet_record *subrec,
|
||||
{
|
||||
if (subrec == wins_server_subnet) {
|
||||
remove_name_from_wins_namelist(namerec);
|
||||
} else {
|
||||
subrec->namelist_changed = True;
|
||||
return;
|
||||
}
|
||||
|
||||
subrec->namelist_changed = True;
|
||||
|
||||
DLIST_REMOVE(subrec->namelist, namerec);
|
||||
SAFE_FREE(namerec->data.ip);
|
||||
ZERO_STRUCTP(namerec);
|
||||
|
Loading…
x
Reference in New Issue
Block a user