Skip to content

Commit d4094d4

Browse files
aescolarjhedberg
authored andcommitted
net: dns: dispatcher: Fix type of pointer
zsock_recvfrom() takes as last argument a socklen_t pointer which type was changed in c546c1c as is not anymore equivalent to size_t. So let's ensure we pass the right type of pointer to it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 16f4d6c commit d4094d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/dns/dispatcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static int recv_data(struct net_socket_service_event *pev)
125125
socklen_t optlen = sizeof(int);
126126
struct net_buf *dns_data = NULL;
127127
struct sockaddr addr;
128-
size_t addrlen;
128+
socklen_t addrlen;
129129
int family, sock_error;
130130
int ret = 0, len;
131131

0 commit comments

Comments
 (0)