Skip to content

Commit

Permalink
MT#55283 skip setting uninitialsed local address
Browse files Browse the repository at this point in the history
Change-Id: I80aa72c1a55ed8cfbe8f43f4a3196f489cdc44bd
  • Loading branch information
rfuchs committed Sep 8, 2023
1 parent 915c408 commit b9af9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ INLINE ssize_t socket_sendiov(socket_t *s, const struct iovec *v, unsigned int l
mh.msg_iov = (void *) v;
mh.msg_iovlen = len;

if (src) {
if (src && src->family) {
mh.msg_control = ctrl;
mh.msg_controllen = sizeof(ctrl);

Expand Down

0 comments on commit b9af9d0

Please sign in to comment.