summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-08-18 18:20:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-18 18:20:23 +0000
commit0e86c5a1d5f45e700cad5d7ed47c2b298e6e170b (patch)
tree9a147e056058adaeb710914da7ec8eee1b9fcf35
parente226badb960695447af4c480bb183ec35c411bbf (diff)
parent7a12cb364297118947f9ce9786f94a47eb710ce8 (diff)
downloadandroid_external_dnsmasq-0e86c5a1d5f45e700cad5d7ed47c2b298e6e170b.tar.gz
android_external_dnsmasq-0e86c5a1d5f45e700cad5d7ed47c2b298e6e170b.tar.bz2
android_external_dnsmasq-0e86c5a1d5f45e700cad5d7ed47c2b298e6e170b.zip
am 7a12cb36: am 4e0ada97: Properly initialize struct irec pointers after malloc()
* commit '7a12cb364297118947f9ce9786f94a47eb710ce8': Properly initialize struct irec pointers after malloc()
-rwxr-xr-xsrc/network.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c
index f2ccf34..c7431df 100755
--- a/src/network.c
+++ b/src/network.c
@@ -309,6 +309,7 @@ static int create_ipv6_listener(struct listener **link, int port)
l->tcpfd = tcpfd;
l->tftpfd = -1;
l->family = AF_INET6;
+ l->iface = NULL;
l->next = NULL;
*link = l;
@@ -381,6 +382,7 @@ struct listener *create_wildcard_listeners(void)
l->fd = fd;
l->tcpfd = tcpfd;
l->tftpfd = tftpfd;
+ l->iface = NULL;
l->next = l6;
return l;