changeset 1888:19999aa446db draft

Fix IA
author Roy Marples <roy@marples.name>
date Mon, 01 Apr 2013 12:24:39 +0000
parents 5aca9cc6a54e
children 069e68f6df28
files dhcp6.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp6.c	Mon Apr 01 12:19:58 2013 +0000
+++ b/dhcp6.c	Mon Apr 01 12:24:39 2013 +0000
@@ -1131,7 +1131,7 @@
 		memcpy(iaid, p, sizeof(iaid));
 		p += sizeof(iaid);
 		ol -= sizeof(iaid);
-		if (ifo->ia_type == D6_OPTION_IA_NA) {
+		if (ifo->ia_type != D6_OPTION_IA_TA) {
 			memcpy(&u32, p, sizeof(u32));
 			renew = ntohl(u32);
 			p += sizeof(u32);