From b5114b41f574c5a5341e07d6f16877a48c6b874d Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Tue, 5 Aug 1997 01:31:55 +0000 Subject: 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) (This used to be commit a2dd5c5a551547e83c707e63c0696c7724035501) --- source3/nameservreply.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'source3/nameservreply.c') diff --git a/source3/nameservreply.c b/source3/nameservreply.c index 81ffe9ffae..e5976bb742 100644 --- a/source3/nameservreply.c +++ b/source3/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; -- cgit