lib: Fix CID 1325733 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Tue, 6 Oct 2015 07:54:19 +0000 (09:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 6 Oct 2015 08:10:16 +0000 (10:10 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/ctdbd_conn.c

index d6bcf06ac40ad177d565e25547c527a551685d89..c7433563fdfe0d3adb915a06eccd20bfc2149b39 100644 (file)
@@ -694,6 +694,7 @@ static NTSTATUS ctdbd_control(struct ctdbd_connection *conn,
 
        if (hdr->operation != CTDB_REPLY_CONTROL) {
                DEBUG(0, ("received invalid reply\n"));
+               status = NT_STATUS_INVALID_NETWORK_RESPONSE;
                goto fail;
        }
        reply = (struct ctdb_reply_control *)hdr;