]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/root_dse.c
Factor out ldif2* intialization to ldif2common.c
[openldap] / servers / slapd / root_dse.c
index 361f7bc4e34fd9d0ab0e961afb8560df256ddb78..13e7a9258a1c018abca4519a37cad61954767eb0 100644 (file)
@@ -88,10 +88,12 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly )
        }
 
        /* supportedSASLMechanism */
-       for ( i=0; supportedSASLMechanisms[i] != NULL; i++ ) {
-               val.bv_val = supportedSASLMechanisms[i];
-               val.bv_len = strlen( val.bv_val );
-               attr_merge( e, "supportedSASLMechanisms", vals );
+       if( supportedSASLMechanisms != NULL ) {
+               for ( i=0; supportedSASLMechanisms[i] != NULL; i++ ) {
+                       val.bv_val = supportedSASLMechanisms[i];
+                       val.bv_len = strlen( val.bv_val );
+                       attr_merge( e, "supportedSASLMechanisms", vals );
+               }
        }
 
        if ( default_referral != NULL ) {