aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2012-06-09 03:36:15 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2012-06-09 03:36:15 +0000
commitc3dadc73f3d2f9682fb8f3b2850e661bfb0b98d7 (patch)
tree5a10e5452b007d6ae828fcaaf7217661ebbe7d67 /rawshark.c
parent1a7470c6be25e157d8323011acae47478bcdf1ab (diff)
Fix Coverity CID 708961: Resource leak, by closing the socket if the connect() fails. While there, print a human-readable error message on Windows like we do for other platforms. Lastly, be sure to specify FORMAT_MESSAGE_IGNORE_INSERTS in the dwFlags arg to all FormatMessage() calls where FORMAT_MESSAGE_FROM_SYSTEM is also specified. (Ref: http://blogs.msdn.com/b/oldnewthing/archive/2007/11/28/6564257.aspx)
svn path=/trunk/; revision=43171
Diffstat (limited to 'rawshark.c')
0 files changed, 0 insertions, 0 deletions