From 56cba7f97cefe4eb0e61415e5c8cf10bfbe5f5e1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 13 Jun 2002 16:26:47 +0000 Subject: [PATCH] In ldap_extended_operation_s, check for NULL retoidp and retdatap before storing NULL. --- libraries/libldap/extended.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5