Skip to content

Commit 9cb85ff

Browse files
committed
fix: ngx-releng and configure
1 parent 21d5e97 commit 9cb85ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ngx_http_lua_socket_tcp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,8 @@ ngx_http_lua_socket_tcp_bind(lua_State *L)
874874
if (n == 3) {
875875
if (!lua_isnumber(L, 3)) {
876876
lua_pushnil(L);
877-
lua_pushfstring(L, "expecting port to be a
878-
number but got type: %s", luaL_typename(L, 3));
877+
lua_pushfstring(L, "expecting port to be a"
878+
"number but got type: %s", luaL_typename(L, 3));
879879
return 2;
880880
}
881881

@@ -897,7 +897,7 @@ ngx_http_lua_socket_tcp_bind(lua_State *L)
897897
}
898898

899899
if (port > 0) {
900-
ngx_inet_set_port(addr->sockaddr, (in_port_t) port);
900+
ngx_inet_set_port(local->sockaddr, (in_port_t) port);
901901
}
902902
/* TODO: we may reuse the userdata here */
903903
lua_rawseti(L, 1, SOCKET_BIND_INDEX);

0 commit comments

Comments
 (0)