Package: wide-dhcpv6 / 20080615-22

0009-Fix-renewal-of-IA-NA.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Jeremie Corbier <jeremie@famille-corbier.net>
Date: Tue, 2 Dec 2014 11:04:59 +0100
Subject: Fix renewal of IA NA

Submitted-by: Vegard Engen <vegard@engen.priv.no>
Signed-off-by: Jeremie Corbier <jeremie@famille-corbier.net>
---
 addrconf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addrconf.c b/addrconf.c
index 98d03e5..47f1738 100644
--- a/addrconf.c
+++ b/addrconf.c
@@ -173,7 +173,7 @@ update_address(ia, addr, dhcpifp, ctlp, callback)
 	    sacreate ? "create" : "update",
 	    in6addr2str(&addr->addr, 0), addr->pltime, addr->vltime);
 
-	if (sa->addr.vltime != 0)
+	if ((sa->addr.vltime != 0) && sacreate)
 		if (na_ifaddrconf(IFADDRCONF_ADD, sa) < 0)
 			return (-1);