Skip to content

Commit 23fd2d7

Browse files
committed
dcerpc: turn print into log_runtime.warning
to make it possible to turn it off with logging.disable(). (it should help to make the fuzz target less chatty among other things because it seems to be the only dissector (covered by the fuzz target) printing messages like that directly)
1 parent cc232c4 commit 23fd2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/layers/dcerpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@ def dispatch_hook(cls, _pkt, _underlayer=None, *args, **kargs):
30003000
for klass in cls._payload_class:
30013001
if hasattr(klass, "can_handle") and klass.can_handle(_pkt, _underlayer):
30023002
return klass
3003-
print("DCE/RPC payload class not found or undefined (using Raw)")
3003+
log_runtime.warning("DCE/RPC payload class not found or undefined (using Raw)")
30043004
return Raw
30053005

30063006
@classmethod

0 commit comments

Comments
 (0)