diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-07-07 17:43:26 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-07-07 17:43:26 +0300 |
commit | 215cb6354e6b4cae1c9b8262fd3ad04ac88ea21d (patch) | |
tree | ecab8801cafdcc96bc84a334f89cf22e260cdb0b /accel-pppd/ctrl | |
parent | d5b314539669e2d13af8bc638dfbaa0516ca10ea (diff) | |
download | accel-ppp-xebd-215cb6354e6b4cae1c9b8262fd3ad04ac88ea21d.tar.gz accel-ppp-xebd-215cb6354e6b4cae1c9b8262fd3ad04ac88ea21d.zip |
fixed check for interface name length
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 1f904bf..81c4df3 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -2932,7 +2932,7 @@ static void add_vlan_mon(const char *opt, long *mask) for (ptr = opt; *ptr && *ptr != ','; ptr++); - if (ptr - opt >= sizeof(ifr.ifr_name)) { + if (ptr - opt >= IFNAMSIZ) { log_error("ipoe: vlan-mon=%s: interface name is too long\n", opt); return; } |