From: Steven Barth Date: Fri, 28 Nov 2014 00:36:44 +0000 (+0100) Subject: Be less picky when erroring out due to strange IA status-codes X-Git-Tag: debian/1.1+git20160131-1~41 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=518cdfc1dbf5c61859f6faaf678e0bbed82755a6;p=odhcp6c.git Be less picky when erroring out due to strange IA status-codes --- diff --git a/src/dhcpv6.c b/src/dhcpv6.c index e857823..cb2aa76 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -1356,23 +1356,8 @@ static void dhcpv6_handle_ia_status_code(const enum dhcpv6_msg orig, } break; - case DHCPV6_NoAddrsAvail: - case DHCPV6_NoPrefixAvail: - switch (orig) { - case DHCPV6_MSG_REQUEST: - if (*ret != 0) - *ret = 0; - break; - default: - break; - } - break; - - case DHCPV6_NotOnLink: - // TODO handle not onlink in case of confirm - break; - default: + *ret = 0; break; } }