]> git.sur5r.net Git - openldap/commitdiff
Fix memory losses, ITS#379
authorHoward Chu <hyc@openldap.org>
Fri, 3 Dec 1999 00:21:32 +0000 (00:21 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 3 Dec 1999 00:21:32 +0000 (00:21 +0000)
libraries/libldap/controls.c
servers/slapd/controls.c

index cc07664c90681f2e62808926cc96ea9c56cd1180..cab753e8810a00b3d20ccf2de46a485d66b16e5b 100644 (file)
@@ -151,7 +151,7 @@ int ldap_int_get_controls(
                return LDAP_NO_MEMORY;
        }
 
-       ctrls[nctrls] = NULL;
+       *ctrls[nctrls] = NULL;
 
        for( tag = ber_first_element( ber, &len, &opaque );
                tag != LBER_ERROR;
index d5c4775a73f8ef41b0fc86cd37974003b14ce362..f906b4068dcf04742fe3483de71517a55d705969 100644 (file)
@@ -75,7 +75,7 @@ int get_ctrls(
        }
 #endif
 
-       ctrls[nctrls] = NULL;
+       *ctrls[nctrls] = NULL;
 
        for( tag = ber_first_element( ber, &len, &opaque );
                tag != LBER_ERROR;