From: Pierangelo Masarati Date: Sun, 23 Dec 2001 09:04:44 +0000 (+0000) Subject: small bug exploited by malformed DCE format X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~569 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6620bbff168ba14a8a5be71605505909cbfd522d;p=openldap small bug exploited by malformed DCE format --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index e4bb1b1504..59d0bb572e 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -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; }