]> granicus.if.org Git - apache/commitdiff
Mistakenly try to use a line comment to the end of your Listen
authorJeff Trawick <trawick@apache.org>
Thu, 5 Sep 2013 16:33:11 +0000 (16:33 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 5 Sep 2013 16:33:11 +0000 (16:33 +0000)
directive on Windows => crash-o-matic

Or,

WinNT MPM: Don't crash during child process initialization if the
Listen protocol is unrecognized.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1520368 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/log-message-tags/next-number
server/mpm/winnt/child.c

diff --git a/CHANGES b/CHANGES
index f142a7d0dc2a4237c63815bb835ac5021908e3ec..6f3d2f98ac16e9d7258f44ebf138d65fa899bfdf 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) WinNT MPM: Don't crash during child process initialization if the
+     Listen protocol is unrecognized.  [Jeff Trawick]
+
   *) mod_lua: add setcookie and getcookie functions to the request_rec struct.
      [Daniel Gruno]
 
index 17ab988c3d580317c2e103c164ffec6c309df792..4aabc755bc163f3edc68f0d3db02861407ba94fb 100644 (file)
@@ -1 +1 @@
-2531
+2532
index da9f0a09c113adcee986440c104e008d47279f60..bda0d71c73ba72e60c28804ac11f17de119ceae7 100644 (file)
@@ -315,7 +315,15 @@ static unsigned int __stdcall winnt_accept(void *lr_)
     core_sconf = ap_get_core_module_config(ap_server_conf->module_config);
     accf_name = apr_table_get(core_sconf->accf_map, lr->protocol);
 
-    if (strcmp(accf_name, "data") == 0)
+    if (!accf_name) {
+        accf = 0;
+        accf_name = "none";
+        ap_log_error(APLOG_MARK, APLOG_WARNING, 0, ap_server_conf,
+                     APLOGNO(02531) "winnt_accept: Listen protocol '%s' has "
+                     "no known accept filter. Using 'none' instead",
+                     lr->protocol);
+    }
+    else if (strcmp(accf_name, "data") == 0)
         accf = 2;
     else if (strcmp(accf_name, "connect") == 0)
         accf = 1;