| Last change
                  on this file since 2685 was
                  2625,
                  checked in by andersk, 11 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 | 
      
      
        
  | Rev | Line |  | 
|---|
| [2625] | 1 | Index: modules/ssl/ssl_engine_vars.c | 
|---|
|  | 2 | =================================================================== | 
|---|
|  | 3 | --- modules/ssl/ssl_engine_vars.c   (revision 1630015) | 
|---|
|  | 4 | +++ modules/ssl/ssl_engine_vars.c   (working copy) | 
|---|
|  | 5 | @@ -73,7 +73,9 @@ | 
|---|
|  | 6 | static const char *expr_var_fn(ap_expr_eval_ctx_t *ctx, const void *data) | 
|---|
|  | 7 | { | 
|---|
|  | 8 | char *var = (char *)data; | 
|---|
|  | 9 | -    return ssl_var_lookup_ssl(ctx->p, ctx->c, ctx->r, var); | 
|---|
|  | 10 | +    SSLConnRec *sslconn = myConnConfig(ctx->c); | 
|---|
|  | 11 | + | 
|---|
|  | 12 | +    return sslconn ? ssl_var_lookup_ssl(ctx->p, ctx->c, ctx->r, var) : ""; | 
|---|
|  | 13 | } | 
|---|
|  | 14 |  | 
|---|
|  | 15 | static int ssl_expr_lookup(ap_expr_lookup_parms *parms) | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.