]> git.feebdaed.xyz Git - 0xmirror/civetweb.git/commitdiff
Fix: Server with multiple SSL certificates and mg_set_request_handler() not working
authorbel2125 <bel2125@gmail.com>
Tue, 2 Sep 2025 08:22:22 +0000 (10:22 +0200)
committerbel2125 <bel2125@gmail.com>
Tue, 2 Sep 2025 08:22:22 +0000 (10:22 +0200)
Fixes #1335

src/civetweb.c

index bbc9aa8be8ca8e6fec320c28007d8abd02914355..0756b6d1af47bdc65133fca547d8ab0f0fdfed13 100644 (file)
@@ -22020,7 +22020,7 @@ mg_start_domain2(struct mg_context *ctx,
                }
        }
 
-       new_dom->handlers = NULL;
+       new_dom->handlers = ctx->dd.handlers;
        new_dom->next = NULL;
        new_dom->nonce_count = 0;
        new_dom->auth_nonce_mask = get_random() ^ (get_random() << 31);