mirror of https://github.com/secdev/scapy.git
Don't crash on empty manufdb
This commit is contained in:
parent
89a077139b
commit
d08d9db212
|
@ -250,7 +250,7 @@ def in6_addrtovendor(addr):
|
|||
is returned on error, "UNKNOWN" if the vendor is unknown.
|
||||
"""
|
||||
mac = in6_addrtomac(addr)
|
||||
if mac is None:
|
||||
if mac is None or conf.manufdb is None:
|
||||
return None
|
||||
|
||||
res = conf.manufdb._get_manuf(mac)
|
||||
|
|
Loading…
Reference in New Issue