Add a missing talloc_move() in tldap_search_recv
authorVolker Lendecke <vl@samba.org>
Fri, 19 Jun 2009 15:36:38 +0000 (17:36 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 19 Jun 2009 15:37:30 +0000 (17:37 +0200)
source3/lib/tldap.c

index e1dd67634bbe00939a064ac4ce7aa3d5b501a52c..37caa081ac99d69fe906adea11f5a9c3ab75f6dc 100644 (file)
@@ -1195,7 +1195,7 @@ int tldap_search_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
                }
        }
 
                }
        }
 
-       *pmsg = state->result;
+       *pmsg = talloc_move(mem_ctx, &state->result);
        return TLDAP_SUCCESS;
 }
 
        return TLDAP_SUCCESS;
 }