diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-08-05 01:31:55 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-08-05 01:31:55 +0000 |
commit | a2dd5c5a551547e83c707e63c0696c7724035501 (patch) | |
tree | 5e971e300d39128fd6ad5a8d750061862765bee7 /source/nameservreply.c | |
parent | 0b7b87d51fef112d537ab93bae6c8f448fe65b6e (diff) | |
download | samba-a2dd5c5a551547e83c707e63c0696c7724035501.tar.gz samba-a2dd5c5a551547e83c707e63c0696c7724035501.tar.xz samba-a2dd5c5a551547e83c707e63c0696c7724035501.zip |
Makefile: Added IRIX 6 target.
loadparm.c: Fixed stupid static warnings with set_default_server_announce_type.
password.c: Fixed char -> uchar cast warnings.
nameservreply.c: Fixed group fade out code.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/nameservreply.c')
-rw-r--r-- | source/nameservreply.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/source/nameservreply.c b/source/nameservreply.c index 81ffe9ffae6..e5976bb7429 100644 --- a/source/nameservreply.c +++ b/source/nameservreply.c @@ -138,11 +138,22 @@ void reply_name_release(struct packet_struct *p) if (n && (n->source != SELF) && (NAME_GROUP(n->ip_flgs[0].nb_flags) == NAME_GROUP(nb_flags))) { success = True; - - DEBUG(5, ("reply_name_release: Removing name %s on subnet %s\n", + + /* If it's a group name not ending in 1c (not an internet name) + then just allow it to fade out of existance by timing out. */ + if(NAME_GROUP(nb_flags) && (n->name.name_type != 0x1c)) + { + DEBUG(5, ("reply_name_release: Allow group name %s(%d) to fade out on \ +subnet %s\n", namestr(&nmb->question.question_name), n->name.name_type, + inet_ntoa(d->bcast_ip))); + } + else + { + DEBUG(5, ("reply_name_release: Removing name %s on subnet %s\n", namestr(&nmb->question.question_name), inet_ntoa(d->bcast_ip))); - remove_name(d,n); - n = NULL; + remove_name(d,n); + n = NULL; + } } if (bcast) return; |