You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b22f339
Browse filesBrowse the repository at this point in the historyBrowse files
fix(arp): reject bool and non-bytes addresses for non-IP ptypes (#2166)
Problem: ARP._make_proto_resolve rejected a bool only on the IPv4/IPv6
branches; for any other ptype a bool or int was returned unchanged and
make() failed with "TypeError: object of type 'bool' has no len()".
Fix: reject a bool with FieldValueError before the ptype dispatch, pack
bytes/bytearray as bytes, and raise ProtocolError for anything else.
Test: TestARPNonIPAddressType in test_arp_proto_addr_length_unit.
0 commit comments