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/ifcfg.c | |
parent | d5b314539669e2d13af8bc638dfbaa0516ca10ea (diff) | |
download | accel-ppp-215cb6354e6b4cae1c9b8262fd3ad04ac88ea21d.tar.gz accel-ppp-215cb6354e6b4cae1c9b8262fd3ad04ac88ea21d.zip |
fixed check for interface name length
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r-- | accel-pppd/ifcfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c index 5c828a78..77a37321 100644 --- a/accel-pppd/ifcfg.c +++ b/accel-pppd/ifcfg.c @@ -265,7 +265,7 @@ int __export ap_session_rename(struct ap_session *ses, const char *ifname, int l if (len == -1) len = strlen(ifname); - if (len >= IFNAMSIZ - 1) { + if (len >= IFNAMSIZ) { log_ppp_warn("cannot rename interface (name is too long)\n"); return -1; } |