]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Fix Coverity ID 2749: REVERSE_INULL
authorVolker Lendecke <vl@samba.org>
Thu, 19 Apr 2012 07:51:11 +0000 (09:51 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Apr 2012 15:37:37 +0000 (17:37 +0200)
source3/smbd/notify_internal.c

index 4d787436871dc22d6bd0fe70f3f1dbb9a56a77f8..27fe21214b303ba3dcb684df3ff6f5c0ad3c88a2 100644 (file)
@@ -388,7 +388,7 @@ static NTSTATUS notify_add_idx(struct db_record *rec, uint32_t vnn)
 
 NTSTATUS notify_remove(struct notify_context *notify, void *private_data)
 {
-       struct server_id pid = messaging_server_id(notify->msg);
+       struct server_id pid;
        struct notify_list *listel;
        struct db_record *notify_rec;
        NTSTATUS status;
@@ -399,6 +399,8 @@ NTSTATUS notify_remove(struct notify_context *notify, void *private_data)
 
        DEBUG(10, ("notify_remove: private_data=%p\n", private_data));
 
+       pid = messaging_server_id(notify->msg);
+
        for (listel=notify->list;listel;listel=listel->next) {
                if (listel->private_data == private_data) {
                        DLIST_REMOVE(notify->list, listel);