Author: ume Date: Tue Nov 24 11:07:37 2015 New Revision: 291247 URL: https://svnweb.freebsd.org/changeset/base/291247
Log: Add missing error check after xo_parse_args() in netstat(8). Submitted by: Oliver Pinter Differential Revision: https://reviews.freebsd.org/D4233 Modified: head/usr.bin/netstat/main.c Modified: head/usr.bin/netstat/main.c ============================================================================== --- head/usr.bin/netstat/main.c Tue Nov 24 11:01:43 2015 (r291246) +++ head/usr.bin/netstat/main.c Tue Nov 24 11:07:37 2015 (r291247) @@ -242,6 +242,8 @@ main(int argc, char *argv[]) af = AF_UNSPEC; argc = xo_parse_args(argc, argv); + if (argc < 0) + exit(EXIT_FAILURE); while ((ch = getopt(argc, argv, "46AaBbdF:f:ghI:iLlM:mN:np:Qq:RrSTsuWw:xz")) != -1) _______________________________________________ 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"