Skip to content

Commit

Permalink
dict-ldap: Properly duplicate result
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and GitLab committed May 6, 2016
1 parent 6ea49f0 commit 04d809e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib-dict-extra/dict-ldap.c
Expand Up @@ -259,7 +259,9 @@ static
void ldap_dict_lookup_done(const struct dict_lookup_result *result, void *ctx)
{
struct dict_lookup_result *res = ctx;
*res = *result;
res->ret = result->ret;
res->value = t_strdup(result->value);
res->error = t_strdup(result->error);
}

static void
Expand Down

0 comments on commit 04d809e

Please sign in to comment.