diff options
author | Jeremy Allison <jra@samba.org> | 2002-11-15 18:55:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-11-15 18:55:18 +0000 |
commit | 392e2b2a0aab5e0e86d831b462b174abe8d089cb (patch) | |
tree | db64dcf1b09bf4650843f08d06bbf28b08fb639e /source3/nmbd | |
parent | f2e3b68ce6db8b06f5ea4c8cc969cc1b8e4d9bd9 (diff) | |
download | samba-392e2b2a0aab5e0e86d831b462b174abe8d089cb.tar.gz samba-392e2b2a0aab5e0e86d831b462b174abe8d089cb.tar.bz2 samba-392e2b2a0aab5e0e86d831b462b174abe8d089cb.zip |
Fix from "Stefan (metze) Metzmacher" <metze@metzemix.de> for nmbd 1c group
release.
Jeremy.
(This used to be commit 7d9552e9c58e533f451a720c9c9c54b8abf3a454)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd_winsserver.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index ee47cff049..d67d25bb88 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 |