summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/ctdbd_conn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 8e0eeee9fa..79abb48ec1 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -844,6 +844,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;
}