Skip to content

Commit

Permalink
Forgot to pass in errbuf to pcap_open_live (thanks dakrone).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 3, 2009
1 parent 9963539 commit aa26ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pcap/pcap.rb
Expand Up @@ -53,7 +53,7 @@ def PCap.open_live(options={},&block)
to_ms = (options[:timeout] || 0)
errbuf = ErrorBuffer.new

ptr = PCap.pcap_open_live(device,snaplen,promisc,to_ms,nil)
ptr = PCap.pcap_open_live(device,snaplen,promisc,to_ms,errbuf)

if ptr.null?
raise(StandardError,errbuf.to_s,caller)
Expand Down

0 comments on commit aa26ea7

Please sign in to comment.