Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2016 05:53:04 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r307563 - soc2016/yuanxunzhang/head/usr.sbin/eaps
Message-ID:  <201608140553.u7E5r4Op077995@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang
Date: Sun Aug 14 05:53:04 2016
New Revision: 307563
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307563

Log:
  EAPS: check eaps domian name

Modified:
  soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c

Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c
==============================================================================
--- soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Sun Aug 14 05:46:10 2016	(r307562)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Sun Aug 14 05:53:04 2016	(r307563)
@@ -130,6 +130,7 @@
 static void
 create_domain(int argc, char **argv, int s)
 {
+	int error = 0;
 	char *domain_name = *(++argv);
 
 	printf("Debug print: Create eaps %s!\n", domain_name);
@@ -150,6 +151,8 @@
 
 	if (ioctl(s, SIOCIFCREATE2, &ifr) < 0)
 		err(1, "SIOCIFCREATE2");
+
+	exit(error);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608140553.u7E5r4Op077995>