Merge pull request #1244 from guedou/dojo_in6_addrtovendor

Don't crash on empty manufdb
This commit is contained in:
Guillaume Valadon 2018-03-15 16:30:29 +01:00 committed by GitHub
commit 2c9361b56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)