Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSShared initialize ad...



details:   https://anonhg.NetBSD.org/src/rev/9a1395ec33be
branches:  trunk
changeset: 832183:9a1395ec33be
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 02 12:12:13 2018 +0000

description:
initialize addr to 0.

diffstat:

 external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 1ed6b1a204ba -r 9a1395ec33be external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c
--- a/external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c   Wed May 02 11:02:42 2018 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSShared/PlatformCommon.c   Wed May 02 12:12:13 2018 +0000
@@ -44,6 +44,7 @@
     int sock = socket(AF_INET, SOCK_DGRAM, 0);
     src->type = mDNSAddrType_None;
     if (sock == -1) return;
+    memset(&addr, 0, sizeof(addr));
     if (dst->type == mDNSAddrType_IPv4)
     {
         inner_len = sizeof(addr.a4);



Home | Main Index | Thread Index | Old Index