]> git.sur5r.net Git - openldap/commitdiff
ITS#7611 Fix loglevel2bvarray
authorJan Synacek <jsynacek@redhat.com>
Wed, 29 May 2013 08:21:40 +0000 (10:21 +0200)
committerHoward Chu <hyc@openldap.org>
Wed, 29 May 2013 14:31:15 +0000 (07:31 -0700)
servers/slapd/bconfig.c

index 4e1f1b531f788e6e39f5a3d055f315161bd3ef27..def6daf20135d49a56c03eae2c7c9f56482104a8 100644 (file)
@@ -3622,6 +3622,10 @@ loglevel2bvarray( int l, BerVarray *bva )
                loglevel_init();
        }
 
+       if ( l == 0 ) {
+               return value_add_one( bva, ber_bvstr( "0" ) );
+       }
+
        return mask_to_verbs( loglevel_ops, l, bva );
 }