summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Andersson <jon.andersson@thalesgroup.com>2011-10-10 22:48:41 +0200
committerStephen Hemminger <stephen.hemminger@vyatta.com>2012-01-09 14:24:09 -0800
commitea91e38e7d4eaa249042dccb4ebf217c0a4a7b75 (patch)
treedfeb5c475903d308633847ca10a521afccc9a010 /src
parent35318f42ca5b328b901c6e9d42246261db1f768e (diff)
downloadvyatta-cfg-system-ea91e38e7d4eaa249042dccb4ebf217c0a4a7b75.tar.gz
vyatta-cfg-system-ea91e38e7d4eaa249042dccb4ebf217c0a4a7b75.zip
Update to local_ip
Diffstat (limited to 'src')
-rw-r--r--src/local_ip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/local_ip.c b/src/local_ip.c
index 3707559f..f238acfe 100644
--- a/src/local_ip.c
+++ b/src/local_ip.c
@@ -46,7 +46,9 @@ int main(int argc, char **argv)
return -1;
}
} else {
- struct sockaddr_in6 sin6;
+ struct sockaddr_in6 sin6 = {
+ .sin6_family = AF_INET6,
+ };
if (inet_pton(af, argv[1], &sin6.sin6_addr) <= 0) {
fprintf(stderr, "%s: invalid address\n", argv[1]);