]> git.sur5r.net Git - openldap/commitdiff
In ldap_extended_operation_s, check for NULL retoidp and retdatap
authorHoward Chu <hyc@openldap.org>
Thu, 13 Jun 2002 16:26:47 +0000 (16:26 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Jun 2002 16:26:47 +0000 (16:26 +0000)
before storing NULL.

libraries/libldap/extended.c

index 74e31281ca592d0464906b10ea07ea706d1ebc60..b0a7ed691a44329f38baf7c434b9db12d00fd5fc 100644 (file)
@@ -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 );