s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.
authorMichael Adam <obnox@samba.org>
Thu, 23 Dec 2010 15:43:55 +0000 (16:43 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Apr 2011 16:10:35 +0000 (18:10 +0200)
(cherry picked from commit c1f3d00263a7476564c5e758d80aca0b3fe8b8a5)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/lib/ctdbd_conn.c

index 1b64a29887401ed2f02c4148a8a8b72651798488..4137bdd50309deba725f3982f3eea2ed006ee64f 100644 (file)
@@ -837,6 +837,9 @@ static NTSTATUS ctdbd_control(struct ctdbd_connection *conn,
 
        if (flags & CTDB_CTRL_FLAG_NOREPLY) {
                TALLOC_FREE(new_conn);
+               if (cstatus) {
+                       *cstatus = 0;
+               }
                return NT_STATUS_OK;
        }