Commit a14acc68 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2423 don't malloc prompt results

parent 4f8a99e1
......@@ -70,10 +70,7 @@ static int ldapdb_interact(LDAP *ld, unsigned flags __attribute__((unused)),
if (p.bv_val)
in->result = gc->lp->utils->malloc(p.bv_len+1);
if (!in->result)
strcpy((char *)in->result, p.bv_val);
in->result = p.bv_val;
in->len = p.bv_len;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment