From: John Crispin Date: Wed, 27 Aug 2014 14:09:08 +0000 (+0200) Subject: gracefully exit if the cmdline is bogus X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=commitdiff_plain;h=b2fcf49ef01411ab1ed8a0721e89460d0e870616 gracefully exit if the cmdline is bogus Signed-off-by: John Crispin --- diff --git a/main.c b/main.c index 383eb9c..f559c19 100644 --- a/main.c +++ b/main.c @@ -65,6 +65,8 @@ main(int argc, char **argv) case 'i': interface_add(optarg); break; + default: + return -1; } }