diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 20:48:06 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 20:48:06 +0400 |
commit | 88e90fd0812099807511152930a01035f6f3ce5a (patch) | |
tree | a5eb2f05b44692d17074a8a035a84d72f002077f /accel-pppd/session.c | |
parent | 7a1b1120184e627a4465e5131e04e98b54e04f7d (diff) | |
download | accel-ppp-88e90fd0812099807511152930a01035f6f3ce5a.tar.gz accel-ppp-88e90fd0812099807511152930a01035f6f3ce5a.zip |
ipoe: fixed username=ifname, shared=0 mode
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index 22c27446..c04cdd25 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -267,6 +267,9 @@ int __export ap_session_read_stats(struct ap_session *ses, struct rtnl_link_stat struct rtnl_link_stats lstats; time_t t; + if (ses->ifindex == -1) + return -1; + if (!stats) stats = &lstats; |