diff options
author | Erik Kline <ek@google.com> | 2015-08-20 01:16:29 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-20 01:16:29 +0000 |
commit | 965903348a4fd412cba34b1ea4dd9bda46652fdc (patch) | |
tree | 9a147e056058adaeb710914da7ec8eee1b9fcf35 | |
parent | da2c6a7df19095aa2dbc5f722eac6c1bb85daaaa (diff) | |
parent | 0e86c5a1d5f45e700cad5d7ed47c2b298e6e170b (diff) | |
download | android_external_dnsmasq-965903348a4fd412cba34b1ea4dd9bda46652fdc.tar.gz android_external_dnsmasq-965903348a4fd412cba34b1ea4dd9bda46652fdc.tar.bz2 android_external_dnsmasq-965903348a4fd412cba34b1ea4dd9bda46652fdc.zip |
am 0e86c5a1: am 7a12cb36: am 4e0ada97: Properly initialize struct irec pointers after malloc()
* commit '0e86c5a1d5f45e700cad5d7ed47c2b298e6e170b':
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 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; |