lib: Fix CID 1273292 Uninitialized pointer read
authorVolker Lendecke <vl@samba.org>
Wed, 4 Mar 2015 09:00:29 +0000 (10:00 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Wed, 4 Mar 2015 13:46:07 +0000 (14:46 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/lib/ctdbd_conn.c

index 204aba566570c02761a6f9766b0b80fa03127972..18b877c23534660b2e90f279b8ba291da23123b3 100644 (file)
@@ -1222,7 +1222,7 @@ bool ctdb_serverids_exist(struct ctdbd_connection *conn,
 
                if (hdr->operation != CTDB_REPLY_CONTROL) {
                        DEBUG(1, ("Received invalid reply %u\n",
-                                 (unsigned)reply->hdr.operation));
+                                 (unsigned)hdr->operation));
                        goto fail;
                }
                reply = (struct ctdb_reply_control *)hdr;