[PATCH] smbcontrol: fix NUM_CHILDREN message deregister

Christof Schmitt cs at samba.org
Tue Jan 14 13:17:09 MST 2014


On Tue, Jan 14, 2014 at 09:03:12PM +0100, David Disseldorp wrote:
> 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;
>  }

Reviewed-by: Christof Schmit <cs at samba.org>


More information about the samba-technical mailing list