Be less picky when erroring out due to strange IA status-codes
authorSteven Barth <steven@midlink.org>
Fri, 28 Nov 2014 00:36:44 +0000 (01:36 +0100)
committerSteven Barth <steven@midlink.org>
Fri, 28 Nov 2014 00:36:44 +0000 (01:36 +0100)
src/dhcpv6.c

index e857823608b79a315843c0b094907aee1a8205f3..cb2aa76f7c7ba01de307ca59f991ad2b9baf0bfc 100644 (file)
@@ -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;
        }
 }