]> git.ozlabs.org Git - ppp.git/commit - pppd/auth.c
pppd: Default exit status to EXIT_CONNECT_FAILED during connection phase
authorPaul Mackerras <paulus@samba.org>
Mon, 11 Mar 2013 08:30:21 +0000 (19:30 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 11 Mar 2013 08:30:21 +0000 (19:30 +1100)
commit225361d64ae737afdc8cb57579a2f33525461bc9
treeae397374588c8c3f3450cc417be0dd7d8ec8057f
parent398ed2585640d198c53e736ee5bbd67f7ce8168e
pppd: Default exit status to EXIT_CONNECT_FAILED during connection phase

The rp-pppoe plugin doesn't set the exit status in its connect
function, resulting in pppd exiting with a status of EXIT_OK (0)
if rp-pppoe fails to connect.  This fixes the problem for rp-pppoe
and any other plugins that don't set the exit status explicitly
by making the status default to EXIT_CONNECT_FAILED if the channel's
connect function fails.

Reported-by: Peter Warasin <peter@endian.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/auth.c