From: Howard Chu Date: Thu, 13 Jun 2002 16:26:47 +0000 (+0000) Subject: In ldap_extended_operation_s, check for NULL retoidp and retdatap X-Git-Tag: NO_SLAP_OP_BLOCKS~1467 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56cba7f97cefe4eb0e61415e5c8cf10bfbe5f5e1;p=openldap In ldap_extended_operation_s, check for NULL retoidp and retdatap before storing NULL. --- diff --git a/libraries/libldap/extended.c b/libraries/libldap/extended.c index 74e31281ca..b0a7ed691a 100644 --- a/libraries/libldap/extended.c +++ b/libraries/libldap/extended.c @@ -138,8 +138,8 @@ ldap_extended_operation_s( return( ld->ld_errno ); } - *retoidp = NULL; - *retdatap = NULL; + if ( retoidp != NULL ) *retoidp = NULL; + if ( retdatap != NULL ) *retdatap = NULL; rc = ldap_parse_extended_result( ld, res, retoidp, retdatap, 0 );