From: Jeremy Allison Date: Fri, 15 Nov 2002 18:55:30 +0000 (+0000) Subject: Fix from "Stefan (metze) Metzmacher" for nmbd 1c group X-Git-Tag: samba-4.0.0alpha6~801^2~11793^2~2546 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=fdd3cf7afc4433bc1dde9db50a60afc800b299df;p=samba.git Fix from "Stefan (metze) Metzmacher" for nmbd 1c group release. Jeremy. (This used to be commit 507ff510e7e7d63e02be5b11d974fc05839e6eaf) --- diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index ee47cff0495..d67d25bb883 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -1637,6 +1637,22 @@ release name %s as this record is not anymore active.\n", return; } + /* + * Check if the record is a 0x1c group + * and has more then one ip + * remove only this address. + */ + + if(releasing_group_name && + (question->name_type == 0x1c) && + (namerec->data.num_ips > 1)) { + remove_ip_from_name_record(namerec, from_ip); + DEBUG(3,("wins_process_name_release_request: Remove IP %s from NAME: %s\n", + inet_ntoa(from_ip),nmb_namestr(question))); + send_wins_name_release_response(0, p); + return; + } + /* * Send a release response. * Flag the name as released and update the ttl