summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-16 22:44:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:33 -0500
commit44333763612a79d64f109f94b47c5c26bd01e625 (patch)
tree0a6337c2d28dfbbd4e8c907535cda026dc45a62f /source3/nmbd
parentb85b18d7947fc2125a29b8be9878d66dfd1c79e5 (diff)
downloadsamba-44333763612a79d64f109f94b47c5c26bd01e625.tar.gz
samba-44333763612a79d64f109f94b47c5c26bd01e625.tar.bz2
samba-44333763612a79d64f109f94b47c5c26bd01e625.zip
r16313: Not a problem - but ensure Klocwork is quiet (#872).
Jeremy. (This used to be commit 22a345deed6caa5750e2bb233a20422ad7b90d94)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_subnetdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_subnetdb.c b/source3/nmbd/nmbd_subnetdb.c
index 5a93d8bec0..3b9be2c2ce 100644
--- a/source3/nmbd/nmbd_subnetdb.c
+++ b/source3/nmbd/nmbd_subnetdb.c
@@ -57,8 +57,6 @@ yet and it may be in use by a response record
void close_subnet(struct subnet_record *subrec)
{
- DLIST_REMOVE(subnetlist, subrec);
-
if (subrec->dgram_sock != -1) {
close(subrec->dgram_sock);
subrec->dgram_sock = -1;
@@ -67,6 +65,8 @@ void close_subnet(struct subnet_record *subrec)
close(subrec->nmb_sock);
subrec->nmb_sock = -1;
}
+
+ DLIST_REMOVE(subnetlist, subrec);
}
/****************************************************************************