From 6620bbff168ba14a8a5be71605505909cbfd522d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 23 Dec 2001 09:04:44 +0000 Subject: [PATCH] small bug exploited by malformed DCE format --- libraries/libldap/getdn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.5