Wireshark-commits: [Wireshark-commits] rev 43171: /trunk/ /trunk/: dumpcap.c
Date: Sat, 09 Jun 2012 03:36:15 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43171

User: cmaynard
Date: 2012/06/08 08:36 PM

Log:
 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)

Directory: /trunk/
  Changes    Path          Action
  +25 -7     dumpcap.c     Modified