]> The Tcpdump Group git mirrors - tcpdump/commit
DHCPv6: axe a couple invariant expressions
authorDenis Ovsienko <[email protected]>
Thu, 10 Apr 2014 10:23:17 +0000 (14:23 +0400)
committerDenis Ovsienko <[email protected]>
Thu, 10 Apr 2014 10:23:17 +0000 (14:23 +0400)
commitb070a491c61f8ae3240073353a4d76488618d66b
tree1e1ba4732743455b69e4603c699841c8fcd27b1e
parentbd483ff9411f538862858c9e433b68f8a703232f
DHCPv6: axe a couple invariant expressions

The "type > 65535" condition in dhcp6opt_name() was always false because
the function is given a 16-bit argument.

The "dh6->dh6_msgtype" condition in dhcp6_print() was always true
because name == NULL only when none of the preceding switch block cases
matched.
print-dhcp6.c