summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-12-23 16:43:55 +0100
committerMichael Adam <obnox@samba.org>2011-03-31 18:10:22 +0200
commitfd41b4f1a6fc03f85cd769429765b02cc07b4847 (patch)
treec0df57f6cb226eedc29a8d702941ecea4b9e3ea9
parent34ea813553368a7f0805693c9731e9b0abfefa99 (diff)
downloadsamba-fd41b4f1a6fc03f85cd769429765b02cc07b4847.tar.gz
samba-fd41b4f1a6fc03f85cd769429765b02cc07b4847.tar.bz2
samba-fd41b4f1a6fc03f85cd769429765b02cc07b4847.zip
s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.
-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;
}