]> git.sur5r.net Git - openldap/commitdiff
Fix pointer error in readback control
authorLuke Howard <lukeh@openldap.org>
Tue, 19 Jul 2005 08:39:05 +0000 (08:39 +0000)
committerLuke Howard <lukeh@openldap.org>
Tue, 19 Jul 2005 08:39:05 +0000 (08:39 +0000)
servers/slapd/result.c

index e80de78f232f5b09a3a06271b6e307539c7f4091..7a0a6236076dc497ba4f25d355cef7d692a84d19 100644 (file)
@@ -1550,7 +1550,7 @@ int slap_read_controls(
        c.ldctl_oid = oid->bv_val;
        c.ldctl_iscritical = 0;
 
-       if ( ctrl == NULL ) {
+       if ( *ctrl == NULL ) {
                /* first try */
                *ctrl = (LDAPControl *) slap_sl_calloc( 1, sizeof(LDAPControl), NULL );
        } else {