DragonFly kernel List (threaded) for 2008-06
DragonFly BSD
DragonFly kernel List (threaded) for 2008-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: New Utilities in base: vknetd and vknet


From: Johannes Hofmann <hofmann@xxxxxxxxxxxxxxxxxxxxxx>
Date: 02 Jun 2008 19:39:17 GMT

There's an "exit(1)" missing in vknetd.c which causes vknetd
to segfault when called without arguments.

Cheers,
Johannes


Index: vknetd.c
===================================================================
RCS file: /home/dcvs/src/usr.sbin/vknetd/vknetd.c,v
retrieving revision 1.1
diff -u -p -r1.1 vknetd.c
--- vknetd.c	27 May 2008 01:58:01 -0000	1.1
+++ vknetd.c	2 Jun 2008 19:29:45 -0000
@@ -470,5 +470,6 @@ usage(void)
 {
 	fprintf(stderr, "vknet [-p path] [-t tapdev] [-U] [network/bits]\n");
 	fprintf(stderr, "network must be specified in default secure mode\n");
+	exit(1);
 }
 



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]