From aa74f02cb243c29d80fbb603434bf121b9ce852f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Feb 2005 02:35:23 +0000 Subject: [PATCH] ITS#3552 fix bogus asserts --- libraries/libldap/extended.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ); -- 2.39.5