Merge pull request #4935 from rtthread-bot/rtt_bot

[update] RT-Thread Robot automatic submission
This commit is contained in:
Bernard Xiong 2021-08-11 23:21:17 +08:00 committed by GitHub
commit 39c8bef655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ static void dhcpd_thread_entry(void *parameter)
while (1)
{
bytes_read = recvfrom(sock, recv_data, BUFSZ - 1, 0,
(struct sockaddr *)&client_addr, &addr_len);
(struct sockaddr *)&client_addr, (socklen_t *)&addr_len);
if (bytes_read <= 0)
{
closesocket(sock);