Skip to content

Commit fc30792

Browse files
mt-gjoergesaescolar
authored andcommitted
net: lib: http: add missing zsock_ prefix
the zsock_ prefix is missing at one setsockopt call Signed-off-by: Gerhard Jörges <[email protected]>
1 parent 2d0e7bc commit fc30792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/net/lib/http/http_server_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ int http_server_init(struct http_server_ctx *ctx)
163163
if (IS_ENABLED(CONFIG_NET_IPV4_MAPPING_TO_IPV6)) {
164164
int optval = 0;
165165

166-
(void)setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY,
167-
&optval, sizeof(optval));
166+
(void)zsock_setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval,
167+
sizeof(optval));
168168
}
169169

170170
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)

0 commit comments

Comments
 (0)