aboutsummaryrefslogtreecommitdiff
path: root/print-dhcp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-dhcp6.c')
-rw-r--r--print-dhcp6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print-dhcp6.c b/print-dhcp6.c
index 762d9187eb0b..cbb6d84a0588 100644
--- a/print-dhcp6.c
+++ b/print-dhcp6.c
@@ -518,6 +518,10 @@ dhcp6opt_print(netdissect_options *ndo,
ND_PRINT((ndo, "...)"));
break;
case DH6OPT_RECONF_MSG:
+ if (optlen != 1) {
+ ND_PRINT((ndo, " ?)"));
+ break;
+ }
tp = (const u_char *)(dh6o + 1);
switch (*tp) {
case DH6_RENEW: