aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_ssl_module.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2016-03-31 02:33:53 +0300
committerSergey Kandaurov <pluknet@nginx.com>2016-03-31 02:33:53 +0300
commitc622ff3b44ff57663ccd67f3830a6a84d20acd8f (patch)
tree5bd2ae274324d29ee4ba5cdfac0cbfb3d9ddfa46 /src/http/modules/ngx_http_ssl_module.c
parent2e25f340b8848561a00993f88bdf1723b77fbabe (diff)
downloadnginx-c622ff3b44ff57663ccd67f3830a6a84d20acd8f.tar.gz
nginx-c622ff3b44ff57663ccd67f3830a6a84d20acd8f.zip
Fixed logging with variable field width.
Diffstat (limited to 'src/http/modules/ngx_http_ssl_module.c')
-rw-r--r--src/http/modules/ngx_http_ssl_module.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_ssl_module.c b/src/http/modules/ngx_http_ssl_module.c
index 778bc9320..12da4f200 100644
--- a/src/http/modules/ngx_http_ssl_module.c
+++ b/src/http/modules/ngx_http_ssl_module.c
@@ -338,7 +338,8 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
#if (NGX_DEBUG)
for (i = 0; i < inlen; i += in[i] + 1) {
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
- "SSL ALPN supported by client: %*s", in[i], &in[i + 1]);
+ "SSL ALPN supported by client: %*s",
+ (size_t) in[i], &in[i + 1]);
}
#endif
@@ -365,7 +366,7 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
}
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
- "SSL ALPN selected: %*s", *outlen, *out);
+ "SSL ALPN selected: %*s", (size_t) *outlen, *out);
return SSL_TLSEXT_ERR_OK;
}