socsvn commit: r308273 - soc2016/yuanxunzhang/head/usr.sbin/eaps
yuanxunzhang at FreeBSD.org
yuanxunzhang at FreeBSD.org
Tue Aug 23 16:32:34 UTC 2016
Author: yuanxunzhang
Date: Tue Aug 23 16:32:32 2016
New Revision: 308273
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=308273
Log:
EAPS: fix bug to check port interface
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 Tue Aug 23 15:49:31 2016 (r308272)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Tue Aug 23 16:32:32 2016 (r308273)
@@ -458,7 +458,7 @@
char *port_name = *(++argv);
// check if eaps domain exists
- if (0 == if_nametoindex(domain_name))
+ if (0 == if_nametoindex(port_name))
{
errx(1, "port %s does not exist", port_name);
}
@@ -497,7 +497,7 @@
char *port_name = *(++argv);
// check if eaps domain exists
- if (0 == if_nametoindex(domain_name))
+ if (0 == if_nametoindex(port_name))
{
errx(1, "port %s does not exist", port_name);
}
More information about the svn-soc-all
mailing list