mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-03 02:41:24 +08:00
ITS#2423 don't malloc prompt results
This commit is contained in:
parent
4f8a99e111
commit
a14acc68e2
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user