X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=1c570eee7860338ae31139ef7f4ed6e06d46a4e2;hb=93b2bde457ac91bd4a395dfafd6bd5eed670c85a;hp=86315662b0611ba6b7d62434ee8b380e9c10396b;hpb=81131c3cca1cb450d8ff67213182d9d06dc5d9ad;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 8631566..1c570ee 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -40,7 +40,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: main.c,v 1.130 2003/12/17 08:56:05 kad Exp $" +#define RCSID "$Id: main.c,v 1.131 2004/01/13 04:00:34 paulus Exp $" #include #include @@ -589,7 +589,8 @@ main(argc, argv) */ disconnect: new_phase(PHASE_DISCONNECT); - the_channel->disconnect(); + if (the_channel->disconnect) + the_channel->disconnect(); fail: if (the_channel->cleanup)