From b9af9d0e493302f5b9d404492768de050368c93c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 8 Sep 2023 12:23:10 -0400 Subject: [PATCH] MT#55283 skip setting uninitialsed local address Change-Id: I80aa72c1a55ed8cfbe8f43f4a3196f489cdc44bd --- lib/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.h b/lib/socket.h index 430c29b76e..df9be3e38a 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -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);