X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fauth.c;h=7ada83afc8e56973b5059dc812e7cac3716da326;hb=a25ab4af5d8ea4f1760b5db5f5ee5b65bbfcd53b;hp=457fa1c6070a67b8dc53f47bcf4cb8dcecad4957;hpb=963a3b2de4193800c5549ca4a326e1dee99fc077;p=ppp.git diff --git a/pppd/auth.c b/pppd/auth.c index 457fa1c..7ada83a 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: auth.c,v 1.36 1998/03/25 01:26:03 paulus Exp $"; +static char rcsid[] = "$Id: auth.c,v 1.37 1998/03/26 04:46:03 paulus Exp $"; #endif #include @@ -433,6 +433,12 @@ np_up(unit, proto) */ if (maxconnect > 0) TIMEOUT(connect_time_expired, 0, maxconnect); + + /* + * Detach now, if the updetach option was given. + */ + if (nodetach == -1) + detach(); } ++num_np_up; }