diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-05-31 01:11:40 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-05-31 01:11:40 +0000 |
commit | 9f4e01224751134c2f7701e2aea87d06a79d77a4 (patch) | |
tree | cc64a8070622596af11a4c47b9fe2c100be69863 /source/nameservreply.c | |
parent | fbeaf146c0903f0939d1128af01cff8ea18a2546 (diff) | |
download | samba-9f4e01224751134c2f7701e2aea87d06a79d77a4.tar.gz samba-9f4e01224751134c2f7701e2aea87d06a79d77a4.tar.xz samba-9f4e01224751134c2f7701e2aea87d06a79d77a4.zip |
namepacket.c: Block SIGTERM correctly - we can only take them at defined points.
nameserv.c: Fixup name release code - used when we are going down.
nameservreply.c: Relaxed check for deleting name - original code never deleted.
nmbd.c: Block SIGTERM signals most of the time - see comment on namepacket above.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/nameservreply.c')
-rw-r--r-- | source/nameservreply.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/nameservreply.c b/source/nameservreply.c index a4888b04d4d..9f7b3da70ba 100644 --- a/source/nameservreply.c +++ b/source/nameservreply.c @@ -135,10 +135,13 @@ void reply_name_release(struct packet_struct *p) search, ip); /* XXXX under what conditions should we reject the removal?? */ - if (n && n->ip_flgs[0].nb_flags == nb_flags) + /* For now - remove if the names match and the group bit matches. */ + if (n && (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", + namestr(&nmb->question.question_name), inet_ntoa(d->bcast_ip))); remove_name(d,n); n = NULL; } |