Fix missing RA RDNS option with --dhcp-option=option6:23,[::]
diff --git a/CHANGELOG b/CHANGELOG
index 785eea4..165ec4f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,10 @@
 	    Fix infinite loop associated with some --bogus-nxdomain
 	    configs. Thanks fogobogo for the bug report.
 
+	    Fix missing RA RDNS option with configuration like
+	    --dhcp-option=option6:23,[::] Thanks to Tsachi Kimeldorfer
+	    for spotting the problem.
+
 
 version 2.68
             Use random addresses for DHCPv6 temporary address
diff --git a/src/radv.c b/src/radv.c
index 9838bb6..84c1aab 100644
--- a/src/radv.c
+++ b/src/radv.c
@@ -343,7 +343,7 @@
 	  struct in6_addr *a = (struct in6_addr *)opt_cfg->val;
 	  
 	  done_dns = 1;
-          if (opt_cfg->len == 0 || (IN6_IS_ADDR_UNSPECIFIED(a) && parm.pref_time != 0))
+          if (opt_cfg->len == 0 || (IN6_IS_ADDR_UNSPECIFIED(a) && parm.pref_time == 0))
 	    continue;
 	  
 	  put_opt6_char(ICMP6_OPT_RDNSS);