aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-08-20 01:14:15 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-01 17:00:27 +0200
commit7eb155ab8f9d27e500ab91fbe8f3cef777e131fe (patch)
tree4db2bc618b3e58f52af7f85cb0d8b8d5b55a4a1e /conf.c
parent64c0f20ab3f8744bbab1fd83a4c44d11d116f99b (diff)
downloadpasst-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.tar
passt-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.tar.gz
passt-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.tar.bz2
passt-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.tar.lz
passt-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.tar.xz
passt-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.tar.zst
passt-7eb155ab8f9d27e500ab91fbe8f3cef777e131fe.zip
conf: Fix check for IPv6 DNS address being already set
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index c1e2961..3c49ab1 100644
--- a/conf.c
+++ b/conf.c
@@ -525,7 +525,7 @@ static void get_dns(struct ctx *c)
FILE *r;
dns4_set = !!*dns4;
- dns6_set = !IN6_IS_ADDR_UNSPECIFIED(&dns6);
+ dns6_set = !IN6_IS_ADDR_UNSPECIFIED(dns6);
dnss_set = !!*s->n || c->no_dns_search;
dns_set = dns4_set || dns6_set || c->no_dns;