From dcd0db3ec7f2efd4930010676b8ec7f9f5febabb Mon Sep 17 00:00:00 2001 From: X_Cli <pub-github@x-cli.eu> Date: Tue, 26 Jul 2016 09:41:17 +0200 Subject: [PATCH] base_classes.py: dispatch_hook: conf variable is undefined in the global scope (#228) Fix `Raw` and `conf` undefined --- scapy/base_classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scapy/base_classes.py b/scapy/base_classes.py index 1ff6c9e9..7575bf6b 100644 --- a/scapy/base_classes.py +++ b/scapy/base_classes.py @@ -216,9 +216,9 @@ class Packet_metaclass(type): try: cls = cls.dispatch_hook(*args, **kargs) except: - if conf.debug_dissector: + if config.conf.debug_dissector: raise - cls = Raw + cls = config.conf.raw_layer i = cls.__new__(cls, cls.__name__, cls.__bases__, cls.__dict__) i.__init__(*args, **kargs) return i -- GitLab