summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-14 08:46:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:22 -0500
commit2e51b42c2c4b543437fd7b9f7bc93380f7e2cf4e (patch)
tree1b81e0f5e711bf2542f184de1f0641a4eb068fe7 /source4/nbt_server
parent2759fc850b8cf5f58207b642e0d2d922d884a813 (diff)
downloadsamba-2e51b42c2c4b543437fd7b9f7bc93380f7e2cf4e.tar.gz
samba-2e51b42c2c4b543437fd7b9f7bc93380f7e2cf4e.tar.bz2
samba-2e51b42c2c4b543437fd7b9f7bc93380f7e2cf4e.zip
r12229: fix the expire time for released records
metze (This used to be commit 6d355a953838bb551b6aef05b2daaeae13682a7b)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/wins/winsserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 8ea437f618..caf56a2776 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -421,7 +421,7 @@ static void nbtd_winsserver_release(struct nbt_name_socket *nbtsock,
}
if (rec->state == WREPL_STATE_RELEASED) {
- rec->expire_time = winssrv->config.tombstone_interval;
+ rec->expire_time = time(NULL) + winssrv->config.tombstone_interval;
}
ret = winsdb_modify(winssrv->wins_db, rec, modify_flags);