Changeset 6728:8f75d9883730 in nginx


Ignore:
Timestamp:
10/05/16 15:11:39 (3 years ago)
Author:
Sergey Kandaurov <pluknet@…>
Branch:
default
Phase:
public
Message:

Stream ssl_preread: fixed $ssl_preread_server_name variable.

Made sure to set the variable length only after successful SNI parsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/stream/ngx_stream_ssl_preread_module.c

    r6696 r6728  
    334334            }
    335335
    336             ctx->host.len = size;
    337336            dst = ctx->host.data;
    338337            break;
    339338
    340339        case sw_sni_host:
     340            ctx->host.len = (p[1] << 8) + p[2];
     341
    341342            ngx_log_debug1(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
    342343                           "ssl preread: SNI hostname \"%V\"", &ctx->host);
Note: See TracChangeset for help on using the changeset viewer.