r11970: fixed a valgrind error. The auth info from the alter_context reply was
authorAndrew Tridgell <tridge@samba.org>
Wed, 30 Nov 2005 04:45:26 +0000 (04:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:52 +0000 (13:46 -0500)
being freed before being given to gensec_update()

source/librpc/rpc/dcerpc.c

index 220b061f3ca745afaefae1a52a34d9b28cb68915..aabc71a258fe71163aa60ffc5bbe4f859fd8535a 100644 (file)
@@ -1557,7 +1557,7 @@ static void dcerpc_alter_recv_data(struct dcerpc_connection *conn, struct ncacn_
        if (pipe->conn->security_state.auth_info &&
            pkt->u.alter_resp.auth_info.length) {
                c->status = ndr_pull_struct_blob(
-                       &pkt->u.alter_resp.auth_info, c,
+                       &pkt->u.alter_resp.auth_info, pipe,
                        pipe->conn->security_state.auth_info,
                        (ndr_pull_flags_fn_t)ndr_pull_dcerpc_auth);
                if (!composite_is_ok(c)) return;