Skip to content

Commit 1ca69ef

Browse files
committed
a follow-up fix for the previous commit.
1 parent f54438b commit 1ca69ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_socket_udp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ ngx_http_lua_udp_connect(ngx_udp_connection_t *uc)
13581358

13591359
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, &uc->log, 0, "UDP socket %d", s);
13601360

1361-
if (s == -1) {
1361+
if (s == (ngx_socket_t) -1) {
13621362
ngx_log_error(NGX_LOG_ALERT, &uc->log, ngx_socket_errno,
13631363
ngx_socket_n " failed");
13641364

0 commit comments

Comments
 (0)