[ Charset UTF-8 unsupported, converting... ] > Author: glebius > Date: Tue Apr 25 15:56:46 2017 > New Revision: 317409 > URL: https://svnweb.freebsd.org/changeset/base/317409 > > Log: > Cherry-pick 5d3c5151c2b885aab36627bafb8539238da27b2d, it fixes use after > free
Lets not use git hashes as references in commit messages, it has very little value for someone reading a log of changes looking for something. There is no promise that it can be found later (github can go Poof). > if tcpdump(1) is run on non-existent interface. > > Suggested by: zeising > > Modified: > head/contrib/tcpdump/tcpdump.c > > Modified: head/contrib/tcpdump/tcpdump.c > ============================================================================== > --- head/contrib/tcpdump/tcpdump.c Tue Apr 25 13:17:34 2017 > (r317408) > +++ head/contrib/tcpdump/tcpdump.c Tue Apr 25 15:56:46 2017 > (r317409) > @@ -1085,9 +1085,9 @@ open_interface(const char *device, netdi > /* > * Return an error for our caller to handle. > */ > - pcap_close(pc); > snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s: %s\n(%s)", > device, pcap_statustostr(status), cp); > + pcap_close(pc); > return (NULL); > } else if (status == PCAP_ERROR_PERM_DENIED && *cp != '\0') > error("%s: %s\n(%s)", device, > > -- Rod Grimes rgri...@freebsd.org _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"