1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/audio/zinf/files/patch-io-obs-obsinput.cpp
2002-06-10 10:46:45 +00:00

19 lines
613 B
C++

--- io/obs/obsinput.cpp-- Thu Oct 5 17:17:33 2000
+++ io/obs/obsinput.cpp Sun Jun 9 16:13:16 2002
@@ -193,6 +193,7 @@
m_pSin = (struct sockaddr_in *)malloc(sizeof(struct sockaddr_in));
assert(m_pSin);
+ (void) memset(m_pSin, 0, sizeof(*m_pSin));
iReuse = 1;
m_pSin->sin_family = AF_INET;
@@ -213,6 +214,7 @@
else
m_pSin->sin_addr.s_addr = htonl(INADDR_ANY);
+ (void) memset(&sMreq, 0, sizeof(sMreq));
sMreq.imr_multiaddr.s_addr = inet_addr(szAddr);
sMreq.imr_interface.s_addr = htonl(INADDR_ANY);
if (IN_MULTICAST(ntohl(sMreq.imr_multiaddr.s_addr)))