Skip to content

Commit 2c9361b

Browse files
authored
Merge pull request #1244 from guedou/dojo_in6_addrtovendor
Don't crash on empty manufdb
2 parents 17be1dd + d08d9db commit 2c9361b

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)