]> granicus.if.org Git - apache/commitdiff
* Handle the case where conf->accf_map is NULL gracefully instead of segfaulting
authorRuediger Pluem <rpluem@apache.org>
Sat, 3 Jan 2009 09:52:12 +0000 (09:52 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 3 Jan 2009 09:52:12 +0000 (09:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730949 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c

index 8ec09dc026098e8a7a44298d525fba5d461818b9..e6ba2512a30f8f0f32898f28bf4d1fe821f2ab69 100644 (file)
@@ -183,7 +183,7 @@ static const char* find_accf_name(server_rec *s, const char *proto)
     const char* accf;
     core_server_config *conf = ap_get_module_config(s->module_config,
                                                     &core_module);
-    if (!proto) {
+    if (!proto || !conf->accf_map) {
         return NULL;
     }