Add a missing talloc_move() in tldap_search_recv
[metze/samba/wip.git] / 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;
 }