From ac83ed4ea319e37484d7e9ac72d7b52da6ca59b6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 17 Sep 2014 15:17:50 +0200 Subject: [PATCH] libcli: Fix a segfault calling smbXcli_req_set_pending() on NULL. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10817 Signed-off-by: Andreas Schneider --- libcli/smb/smb1cli_echo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libcli/smb/smb1cli_echo.c b/libcli/smb/smb1cli_echo.c index 4fb7c60..10dff2d 100644 --- a/libcli/smb/smb1cli_echo.c +++ b/libcli/smb/smb1cli_echo.c @@ -96,7 +96,6 @@ static void smb1cli_echo_done(struct tevent_req *subreq) NULL, /* pbytes_offset */ NULL, /* pinbuf */ expected, ARRAY_SIZE(expected)); - TALLOC_FREE(subreq); if (!NT_STATUS_IS_OK(status)) { tevent_req_nterror(req, status); return; -- 2.1.0