ITS#3922 plug another cookie parsing leak

This commit is contained in:
Howard Chu 2005-08-09 00:11:42 +00:00
parent 0b2a428a29
commit 28be8691cc

View File

@ -2346,7 +2346,7 @@ static int syncprov_parseCtrl (
tag = ber_peek_tag( ber, &len );
if ( tag == LDAP_TAG_SYNC_COOKIE ) {
if (( ber_scanf( ber, /*{*/ "o", &cookie )) == LBER_ERROR ) {
if (( ber_scanf( ber, /*{*/ "m", &cookie )) == LBER_ERROR ) {
rs->sr_text = "Sync control : cookie decoding error";
return LDAP_PROTOCOL_ERROR;
}