diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-08-29 11:32:09 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-08-29 11:38:19 +0400 |
commit | e01fbff3f78b82b69775b127b594de1757db5914 (patch) | |
tree | 0d4ff2a0ab1694d2a5d8c7215ef980db68c7d715 /accel-pppd/extra/pppd_compat.c | |
parent | 799db65ebf7aaab83bdac467e1425568b554fb2a (diff) | |
download | accel-ppp-e01fbff3f78b82b69775b127b594de1757db5914.tar.gz accel-ppp-e01fbff3f78b82b69775b127b594de1757db5914.zip |
fix incorrect ppp_terminate calls
Diffstat (limited to 'accel-pppd/extra/pppd_compat.c')
-rw-r--r-- | accel-pppd/extra/pppd_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/extra/pppd_compat.c b/accel-pppd/extra/pppd_compat.c index 32a5def..3622531 100644 --- a/accel-pppd/extra/pppd_compat.c +++ b/accel-pppd/extra/pppd_compat.c @@ -156,7 +156,7 @@ static void ev_ppp_pre_up(struct ppp_t *ppp) pthread_mutex_lock(&pd->ip_pre_up_hnd.lock); pthread_mutex_unlock(&pd->ip_pre_up_hnd.lock); if (pd->res != 0) { - ppp_terminate(ppp, 0, pd->res < 0 ? TERM_NAS_ERROR : TERM_ADMIN_RESET); + ppp_terminate(ppp, pd->res > 127 ? TERM_NAS_ERROR : TERM_ADMIN_RESET, 0); return; } } else if (pid == 0) { |