summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-08-18 15:13:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-18 15:13:38 +0000
commit7a12cb364297118947f9ce9786f94a47eb710ce8 (patch)
tree5527b7cea50ac52bd0725e8a08daeb6203a63486
parentef815e0c09f9b45868ee73a09cf7186b23b899d3 (diff)
parent4e0ada9701a819193e25f58e196fc47f9ad8c606 (diff)
downloadandroid_external_dnsmasq-7a12cb364297118947f9ce9786f94a47eb710ce8.tar.gz
android_external_dnsmasq-7a12cb364297118947f9ce9786f94a47eb710ce8.tar.bz2
android_external_dnsmasq-7a12cb364297118947f9ce9786f94a47eb710ce8.zip
am 4e0ada97: Properly initialize struct irec pointers after malloc()
* commit '4e0ada9701a819193e25f58e196fc47f9ad8c606': 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 cb2001d..e24ec3a 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;