Fix sanitizer errors in posix socket (#2331)

This commit is contained in:
Marcin Kolny
2023-07-03 07:36:01 +01:00
committed by GitHub
parent c39eb46b6f
commit 569f702ec2
2 changed files with 5 additions and 2 deletions

View File

@ -275,6 +275,9 @@ os_socket_recv_from(bh_socket_t socket, void *buf, unsigned int len, int flags,
return -1;
}
}
else {
memset(src_addr, 0, sizeof(*src_addr));
}
return ret;
}