]> git.sur5r.net Git - openldap/commitdiff
test slap_dontUseCopy_propnames (ITS#6729)
authorPierangelo Masarati <ando@openldap.org>
Wed, 1 Dec 2010 10:41:05 +0000 (10:41 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 1 Dec 2010 10:41:05 +0000 (10:41 +0000)
servers/slapd/sasl.c

index ca6e7c9ce8069a7a6e67c8fff23cec86415fa050..ed855279893b7f604d3c92e3744c876486669eb5 100644 (file)
@@ -548,7 +548,7 @@ slap_auxprop_store(
                                        op.o_req_ndn.bv_val = (char *)pr[i].values[0];
                        }
 #ifdef SLAP_AUXPROP_DONTUSECOPY
-                       {
+                       if ( slap_dontUseCopy_propnames != NULL ) {
                                struct berval bv;
                                ber_str2bv( &pr[i].name[1], 0, 1, &bv );
                                for ( j = 0; !BER_BVISNULL( &slap_dontUseCopy_propnames[ j ] ); j++ ) {