From d08d9db2121f52c48ed3f331c2bdb0beed5d215f Mon Sep 17 00:00:00 2001 From: Guillaume Valadon Date: Mon, 12 Mar 2018 22:52:53 +0100 Subject: [PATCH] Don't crash on empty manufdb --- scapy/utils6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/utils6.py b/scapy/utils6.py index 51be5b5d4..29e937dd3 100644 --- a/scapy/utils6.py +++ b/scapy/utils6.py @@ -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)