Skip to content

Commit b6faf70

Browse files
authored
Merge pull request #81 from danielinux/fixes-2026-03-16
Fixes finding from static analyzers
2 parents 5b34dc7 + 238db2e commit b6faf70

5 files changed

Lines changed: 570 additions & 50 deletions

File tree

src/port/posix/bsd_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ int wolfIP_sock_recvmsg(struct wolfIP *ipstack, int sockfd, struct msghdr *msg,
933933
break;
934934
(void)wolfIP_sock_poll(ipstack, &pfd, 1, -1);
935935
}
936-
if (ret >= 0 && msg->msg_iovlen > 1) {
936+
if (ret > 0 && msg->msg_iovlen > 1 && buf) {
937937
wolfip_scatter_iov(msg, buf, (size_t)ret);
938938
}
939939
if (heap_buf)

0 commit comments

Comments
 (0)