r16313: Not a problem - but ensure Klocwork is quiet (#872).
authorJeremy Allison <jra@samba.org>
Fri, 16 Jun 2006 22:44:28 +0000 (22:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:33 +0000 (11:17 -0500)
Jeremy.
(This used to be commit 22a345deed6caa5750e2bb233a20422ad7b90d94)

source3/nmbd/nmbd_subnetdb.c

index 5a93d8bec03eb6116d7b6f19305aef7a101964c6..3b9be2c2ce9ca55da007773694a1f93ca24eac9d 100644 (file)
@@ -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);
 }
 
 /****************************************************************************