mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
Refix for ITS#1721. Return LDAP_PROTOCOL_ERROR when reqdata is empty.
This commit is contained in:
parent
35955ffd20
commit
9d1c9c399e
2
CHANGES
2
CHANGES
@ -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)
|
||||
|
@ -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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user