]> git.sur5r.net Git - openldap/commitdiff
more consistent parsing checks
authorPierangelo Masarati <ando@openldap.org>
Fri, 17 Aug 2007 09:53:47 +0000 (09:53 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 17 Aug 2007 09:53:47 +0000 (09:53 +0000)
servers/slapd/overlays/dds.c

index aee748674bf642c23521c38a5b901842e26b2658..278658eb58f93c214c7efad0aa77d2507effee16 100644 (file)
@@ -948,7 +948,7 @@ slap_parse_refresh(
 
        tag = ber_peek_tag( ber, &len );
 
-       if ( len != 0 ) {
+       if ( tag != LBER_DEFAULT || len != 0 ) {
 decoding_error:;
                Log1( LDAP_DEBUG_TRACE, LDAP_LEVEL_ERR,
                        "slap_parse_refresh: decoding error, len=%ld\n",