[PATCH] smbcontrol: fix NUM_CHILDREN message deregister
David Disseldorp
ddiss at samba.org
Tue Jan 14 13:03:12 MST 2014
smbcontrol registers for MSG_SMB_NUM_CHILDREN response messages before
sending a MSG_SMB_TELL_NUM_CHILDREN request.
The same MSG_SMB_NUM_CHILDREN response message should be deregistered.
Signed-off-by: David Disseldorp <ddiss at samba.org>
---
source3/utils/smbcontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 579aa10..7299bc4 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -963,7 +963,7 @@ static bool do_num_children(struct tevent_context *ev_ctx,
if (num_replies == 0)
printf("No replies received\n");
- messaging_deregister(msg_ctx, MSG_SMB_TELL_NUM_CHILDREN, NULL);
+ messaging_deregister(msg_ctx, MSG_SMB_NUM_CHILDREN, NULL);
return num_replies;
}
--
1.8.1.4
More information about the samba-technical
mailing list