ITS#2423 don't malloc prompt results

This commit is contained in:
Howard Chu 2003-04-06 00:52:24 +00:00
parent 4f8a99e111
commit a14acc68e2

View File

@ -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)
return LDAP_NO_MEMORY;
strcpy((char *)in->result, p.bv_val);
in->result = p.bv_val;
in->len = p.bv_len;
}
}