Don't crash on empty manufdb

This commit is contained in:
Guillaume Valadon 2018-03-12 22:52:53 +01:00
parent 89a077139b
commit d08d9db212
1 changed files with 1 additions and 1 deletions

View File

@ -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)