diff options
author | Erik Kline <ek@google.com> | 2015-08-18 15:13:38 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-18 15:13:38 +0000 |
commit | 7a12cb364297118947f9ce9786f94a47eb710ce8 (patch) | |
tree | 5527b7cea50ac52bd0725e8a08daeb6203a63486 | |
parent | ef815e0c09f9b45868ee73a09cf7186b23b899d3 (diff) | |
parent | 4e0ada9701a819193e25f58e196fc47f9ad8c606 (diff) | |
download | dnsmasq-7a12cb364297118947f9ce9786f94a47eb710ce8.tar.gz |
am 4e0ada97: Properly initialize struct irec pointers after malloc()
* commit '4e0ada9701a819193e25f58e196fc47f9ad8c606':
Properly initialize struct irec pointers after malloc()
-rwxr-xr-x | src/network.c | 2 |
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; |