summaryrefslogtreecommitdiffstats
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-17 11:57:52 +0100
committerStefan Metzmacher <metze@samba.org>2014-02-21 12:48:31 +0100
commit9677fae6aab26d2bf0884dc31516d2dcd8840c03 (patch)
treea11c9f461d764b0691f346f8dc79975ac305cfb4 /source3/smbd/process.c
parent52ccb40d595fc80bfa53b0b9cd75ffb902369681 (diff)
downloadsamba-9677fae6aab26d2bf0884dc31516d2dcd8840c03.tar.gz
samba-9677fae6aab26d2bf0884dc31516d2dcd8840c03.tar.xz
samba-9677fae6aab26d2bf0884dc31516d2dcd8840c03.zip
s3:lib/ctdbd_conn: let release_ip_handler return bool
If it returns true the passed ip address matched and we let a nested ctdb operation fail with NT_STATUS_ADDRESS_CLOSED. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 65d005df31..3dcc5d4e27 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2509,7 +2509,7 @@ struct smbd_release_ip_state {
/****************************************************************************
received when we should release a specific IP
****************************************************************************/
-static void release_ip(const char *ip, void *priv)
+static bool release_ip(const char *ip, void *priv)
{
struct smbd_release_ip_state *state =
talloc_get_type_abort(priv,
@@ -2546,8 +2546,10 @@ static void release_ip(const char *ip, void *priv)
*/
smbd_server_connection_terminate(state->sconn,
"CTDB_SRVID_RELEASE_IP");
- return;
+ return true;
}
+
+ return false;
}
static NTSTATUS smbd_register_ips(struct smbd_server_connection *sconn,