Skip to content

Commit 9bee7e7

Browse files
authored
bugfix : comparison of integer expressions of different signedness.
Signed-off-by: lijunlong <[email protected]>
1 parent 1953052 commit 9bee7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_socket_tcp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ ngx_http_lua_ffi_socket_tcp_sslhandshake(ngx_http_request_t *r,
17441744

17451745
/* read rest of the chain */
17461746

1747-
for (i = 1; i < sk_X509_num(chain); i++) {
1747+
for (i = 1; i < (ngx_int_t) sk_X509_num(chain); i++) {
17481748
x509 = sk_X509_value(chain, i);
17491749
if (x509 == NULL) {
17501750
ERR_clear_error();

0 commit comments

Comments
 (0)