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 ...



details:   https://anonhg.NetBSD.org/src/rev/ebeab62b3268
branches:  trunk
changeset: 318652:ebeab62b3268
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 e02d88204341 -r ebeab62b3268 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