winbind4: Fix bug 9832 -- talloc use after free
authorVolker Lendecke <vl@samba.org>
Tue, 7 May 2013 08:17:26 +0000 (10:17 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Jun 2013 10:17:44 +0000 (12:17 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May 16 13:37:41 CEST 2013 on sn-devel-104
(cherry picked from commit 51533eedd7fa162bf8113f1f551064c01741e40e)

source4/winbind/wb_server.c

index bd2d36163823c15bc6feb6fc48cd5d3097496635..3392353a82f234a2ea26d4bc335888233de98648 100644 (file)
@@ -56,7 +56,7 @@ static void wbsrv_call_loop(struct tevent_req *subreq)
        if (!NT_STATUS_IS_OK(status)) {
                const char *reason;
 
-               reason = talloc_asprintf(call, "wbsrv_call_loop: "
+               reason = talloc_asprintf(wbsrv_conn, "wbsrv_call_loop: "
                                         "tstream_read_pdu_blob_recv() - %s",
                                         nt_errstr(status));
                if (!reason) {