Skip to content

Commit d08d9db

Browse files
committed
Don't crash on empty manufdb
1 parent 89a0771 commit d08d9db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scapy/utils6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def in6_addrtovendor(addr):
250250
is returned on error, "UNKNOWN" if the vendor is unknown.
251251
"""
252252
mac = in6_addrtomac(addr)
253-
if mac is None:
253+
if mac is None or conf.manufdb is None:
254254
return None
255255

256256
res = conf.manufdb._get_manuf(mac)

0 commit comments

Comments
 (0)