From 00f9f6984cde8dac5ba232ec435c4b96c6e3b5b8 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Feb 04 2021 14:07:01 +0000 Subject: Define memory pool and hash table where they are initialized mp and ht variables are defined in nss_util.c, but they are referenced in mod_nss.h for share using. Fixes: https://pagure.io/mod_nss/issue/52 Signed-off-by: Stanislav Levin --- diff --git a/mod_nss.h b/mod_nss.h index 0a894ef..484e2ee 100644 --- a/mod_nss.h +++ b/mod_nss.h @@ -376,8 +376,8 @@ typedef struct { */ /* pool and hash to store ServerName and NSSNickname pairs for SNI */ -apr_pool_t *mp; -apr_hash_t *ht; +extern apr_pool_t *mp; +extern apr_hash_t *ht; /* Compatibility between Apache 2.0.x and 2.2.x. The numeric version of * the version first appeared in Apache 2.0.56-dev. I picked 2.0.55 as it diff --git a/nss_util.c b/nss_util.c index cbe65de..dd6d44f 100644 --- a/nss_util.c +++ b/nss_util.c @@ -23,6 +23,9 @@ ** _________________________________________________________________ */ +apr_pool_t *mp; +apr_hash_t *ht; + char *nss_util_vhostid(apr_pool_t *p, server_rec *s) { char *id;