changeset 4966:be0a1437525a draft

DHCP6: Fix writing mudurl
author Roy Marples <roy@marples.name>
date Wed, 15 Jan 2020 17:22:12 +0000
parents 78a1e76b04bd
children e137c0aa1068
files src/dhcp6.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcp6.c	Wed Jan 15 16:24:37 2020 +0000
+++ b/src/dhcp6.c	Wed Jan 15 17:22:12 2020 +0000
@@ -1091,8 +1091,8 @@
 			memcpy(o_lenp, &o.len, sizeof(o.len));
 		}
 
-		if (!has_option_mask(ifo->nomask6, D6_OPTION_MUDURL &&
-		    ifo->mudurl[0]))
+		if (!has_option_mask(ifo->nomask6, D6_OPTION_MUDURL) &&
+		    ifo->mudurl[0])
 			COPYIN(D6_OPTION_MUDURL,
 			    ifo->mudurl + 1, ifo->mudurl[0]);