]> git.sur5r.net Git - openldap/commitdiff
small bug exploited by malformed DCE format
authorPierangelo Masarati <ando@openldap.org>
Sun, 23 Dec 2001 09:04:44 +0000 (09:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 23 Dec 2001 09:04:44 +0000 (09:04 +0000)
libraries/libldap/getdn.c

index e4bb1b150446c254cb563a926f279ff21eb47417..59d0bb572e81f8f7a8ed255d1c5fd98793874863 100644 (file)
@@ -1020,9 +1020,10 @@ ldap_str2dn( const char *str, LDAPDN **dn, unsigned flags )
 
        for ( ; p[ 0 ]; p++ ) {
                LDAPDN          *dn;
+               int             err;
                
-               rc = ldap_str2rdn( p, &newRDN, &p, flags );
-               if ( rc != LDAP_SUCCESS ) {
+               err = ldap_str2rdn( p, &newRDN, &p, flags );
+               if ( err != LDAP_SUCCESS ) {
                        goto parsing_error;
                }