summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/tldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index e1dd67634b..37caa081ac 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -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;
}