summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-22 08:13:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:36 -0500
commit8b7387ee13ae50685989dd63f64711f2977dc887 (patch)
treeda635aed65b22834a7ae01fe30ce1da58e17ffe7 /source4/nbt_server/wins
parent758873b9fb46c0c0059a95c6bdeb23b17f2c80c9 (diff)
downloadsamba-8b7387ee13ae50685989dd63f64711f2977dc887.tar.gz
samba-8b7387ee13ae50685989dd63f64711f2977dc887.tar.bz2
samba-8b7387ee13ae50685989dd63f64711f2977dc887.zip
r12424: static records should not be released
metze (This used to be commit 3f90e72e5a0b839ba16892e8ee8aa46967d081da)
Diffstat (limited to 'source4/nbt_server/wins')
-rw-r--r--source4/nbt_server/wins/winsserver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 8b3b09487e..4c4619b5c8 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -387,6 +387,14 @@ static void nbtd_winsserver_release(struct nbt_name_socket *nbtsock,
goto done;
}
+ if (rec->is_static) {
+ if (rec->type == WREPL_TYPE_UNIQUE || rec->type == WREPL_TYPE_MHOMED) {
+ goto done;
+ }
+ nbtd_name_release_reply(nbtsock, packet, src, NBT_RCODE_ACT);
+ return;
+ }
+
if (rec->state != WREPL_STATE_ACTIVE) {
goto done;
}