]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8629 Make sure pwcons is around for slapauth
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 2 Dec 2019 12:25:52 +0000 (12:25 +0000)
committerOndřej Kuzník <ondra@mistotebe.net>
Mon, 2 Dec 2019 13:28:10 +0000 (13:28 +0000)
Long term, overlay callbacks should not be running in tool mode at all.

servers/slapd/overlays/ppolicy.c

index af82b519a205c298d6109a811deb0d87e9e946be..423057b2b50dc9572494b68d04e094eb094374bb 100644 (file)
@@ -2431,7 +2431,7 @@ ppolicy_db_init(
 
        on->on_bi.bi_private = ch_calloc( sizeof(pp_info), 1 );
 
-       if ( dtblsize && !pwcons ) {
+       if ( !pwcons ) {
                /* accommodate for c_conn_idx == -1 */
                pwcons = ch_calloc( sizeof(pw_conn), dtblsize + 1 );
                pwcons++;