Wireshark-bugs: [Wireshark-bugs] [Bug 6922] Wireshark error message is malformed
Date: Wed, 4 Apr 2012 11:19:52 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6922

--- Comment #3 from Guy Harris <guy@xxxxxxxxxxxx> 2012-04-04 11:19:52 PDT ---
Bug in WinPcap: pcap_opensource_remote() is called with an already-created
(with pcap_create()) pcap_t, and returns an error in its errbuf member. 
However, in the PCAP_SRC_IFREMOTE case in pcap_open(), if
pcap_opensource_remote() fails, pcap_open() does *NOT* copy that error message
to errbuf to return it, so the error reason is lost, and the error message
buffer contains whatever was there before, even if it's uninitialized junk on
the stack.

I'll report that as a bug to the WinPcap developers; Wireshark should work
around that bug with a change such as Jakub's.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.