Ticket #77 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

sniff() do not call close() on the socket

Reported by: guedou@… Owned by: pbi
Priority: low Milestone:
Component: Scapy Version:
Keywords: sniff Cc:

Description

And the solution:

$ hg diff scapy.py 
diff -r 6fab21bb16b5 scapy.py
--- a/scapy.py  Thu Dec 06 18:56:43 2007 +0100
+++ b/scapy.py  Sat Jan 12 11:45:40 2008 +0100
@@ -11234,6 +11234,7 @@ L2socket: use the provided L2socket
                     break
         except KeyboardInterrupt:
             break
+    s.close()
     return PacketList(lst,"Sniffed")

Attachments

Change History

Changed 3 years ago by pbi

  • status changed from new to closed
  • resolution set to fixed

Fixed in [1f2a8a9b49c7].

Add/Change #77 (sniff() do not call close() on the socket)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.