From: Howard Chu Date: Fri, 18 Feb 2005 02:35:23 +0000 (+0000) Subject: ITS#3552 fix bogus asserts X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~166 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa74f02cb243c29d80fbb603434bf121b9ce852f;p=openldap ITS#3552 fix bogus asserts --- diff --git a/libraries/libldap/extended.c b/libraries/libldap/extended.c index 2aded65822..f311557c5a 100644 --- a/libraries/libldap/extended.c +++ b/libraries/libldap/extended.c @@ -61,7 +61,7 @@ ldap_extended_operation( assert( ld != NULL ); assert( LDAP_VALID( ld ) ); - assert( reqoid != NULL || *reqoid == '\0' ); + assert( reqoid != NULL && *reqoid != '\0' ); assert( msgidp != NULL ); /* must be version 3 (or greater) */ @@ -131,8 +131,7 @@ ldap_extended_operation_s( assert( ld != NULL ); assert( LDAP_VALID( ld ) ); - assert( reqoid != NULL || *reqoid == '\0' ); - assert( retoidp != NULL || retdatap != NULL ); + assert( reqoid != NULL && *reqoid != '\0' ); rc = ldap_extended_operation( ld, reqoid, reqdata, sctrls, cctrls, &msgid );