New Utilities in base: vknetd and vknet

Johannes Hofmann hofmann at blob.baaderstrasse.com
Mon Jun 2 12:39:17 PDT 2008


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);
 }
 





More information about the Kernel mailing list