libcli: Fix a segfault calling smbXcli_req_set_pending() on NULL.
authorAndreas Schneider <asn@samba.org>
Wed, 17 Sep 2014 13:17:50 +0000 (15:17 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Sep 2014 02:23:05 +0000 (04:23 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10817

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 23 04:23:05 CEST 2014 on sn-devel-104

libcli/smb/smb1cli_echo.c

index 4fb7c60473467e24a8d5eb33159aca7c63775a9d..10dff2d8c9b507a3d40be3b7c3a626802c6ce674 100644 (file)
@@ -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;