Refix for ITS#1721. Return LDAP_PROTOCOL_ERROR when reqdata is empty.

This commit is contained in:
Kurt Zeilenga 2002-06-10 20:03:48 +00:00
parent 35955ffd20
commit 9d1c9c399e
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
OpenLDAP 2.0 Change Log
OpenLDAP 2.0.25 Engineering
<insert changes here>
Fixed slapd extended op reqdata crash bug
OpenLDAP 2.0.24 Release
Fixed slapd max incoming macro bug (ITS#1828)

View File

@ -86,6 +86,11 @@ int slap_passwd_parse( struct berval *reqdata,
return LDAP_SUCCESS;
}
if( reqdata->bv_len == 0 ) {
*text = "empty request data field";
return LDAP_PROTOCOL_ERROR;
}
ber = ber_init( reqdata );
if( ber == NULL ) {