source: trunk/server/common/patches/httpd-bug57070.patch @ 2717

Last change on this file since 2717 was 2625, checked in by andersk, 10 years ago
Patch httpd crash when using SSL variables on non-SSL connections https://issues.apache.org/bugzilla/show_bug.cgi?id=57070
File size: 588 bytes
  • modules/ssl/ssl_engine_vars.c

     
    7373static const char *expr_var_fn(ap_expr_eval_ctx_t *ctx, const void *data)
    7474{
    7575    char *var = (char *)data;
    76     return ssl_var_lookup_ssl(ctx->p, ctx->c, ctx->r, var);
     76    SSLConnRec *sslconn = myConnConfig(ctx->c);
     77
     78    return sslconn ? ssl_var_lookup_ssl(ctx->p, ctx->c, ctx->r, var) : "";
    7779}
    7880
    7981static int ssl_expr_lookup(ap_expr_lookup_parms *parms)
Note: See TracBrowser for help on using the repository browser.