Skip to content

Commit

Permalink
* Fixing NULL dereference if server variable SSL_PROTOCOL is unset.
Browse files Browse the repository at this point in the history
 * Setting DefaultRuntimeDir and PidFile in test configuration to override
   any platform defaults.
  • Loading branch information
npuichigoB committed Apr 4, 2026
1 parent ff2fbec commit f3c5a8c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Fixing NULL dereference if server variable SSL_PROTOCOL is unset.
* Setting DefaultRuntimeDir and PidFile in test configuration to override
any platform defaults.
* Disabling pollset use when compiling with APR version < 1.6.0

v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion mod_http2/h2_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ int h2_protocol_is_acceptable_c1(conn_rec *c, request_rec *r, int require_all)
return 0;
}

if (!strcmp("TLSv1.2", val)) {
if (val && !strcmp("TLSv1.2", val)) {
/* Check TLS cipher blacklist, defined pre-TLSv1.3, so only
* checking for 1.2 */
val = ap_ssl_var_lookup(pool, s, c, NULL, "SSL_CIPHER");
Expand Down
3 changes: 3 additions & 0 deletions test/pyhttpd/conf/httpd.conf.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
ServerName localhost
ServerRoot "${server_dir}"

DefaultRuntimeDir logs
PidFile httpd.pid

Include "conf/modules.conf"

DocumentRoot "${server_dir}/htdocs"
Expand Down
3 changes: 3 additions & 0 deletions test/pyhttpd/conf/stop.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
ServerName localhost
ServerRoot "${server_dir}"

DefaultRuntimeDir logs
PidFile httpd.pid

Include "conf/modules.conf"

DocumentRoot "${server_dir}/htdocs"
Expand Down

0 comments on commit f3c5a8c

Please sign in to comment.