]> git.sur5r.net Git - openldap/commitdiff
ITS#3922 plug another cookie parsing leak
authorHoward Chu <hyc@openldap.org>
Tue, 9 Aug 2005 00:11:42 +0000 (00:11 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 9 Aug 2005 00:11:42 +0000 (00:11 +0000)
servers/slapd/overlays/syncprov.c

index 801db5516309b4efb973e24b40e295e5061c2d47..8dcd598278ad39c0f75ccb5bf03ce1b07e91cef6 100644 (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;
                }