Hi,

I sent this message to <[EMAIL PROTECTED]>, but it bounced. Then I
sent it to <[EMAIL PROTECTED]>, but that bounced too.
So I'm sending it to you instead. Hope that's OK...
(perhaps the project could set up a bug/patch tracker?)



pppd exits whenever the connection is lost because it tries to call a NULL
pointer. Here's a patch for speedbundle-1.0 that makes it work for me, but
there's probably a saner way to do it...

Thanks,


diff -ur speedbundle.bak/ppp/pppd/main.c speedbundle-1.0/ppp/pppd/main.c
--- speedbundle.bak/ppp/pppd/main.c     2003-06-12 00:56:26.000000000 +0100
+++ speedbundle-1.0/ppp/pppd/main.c     2003-09-03 12:21:42.000000000 +0100
@@ -589,7 +589,8 @@
         */
     disconnect:
        new_phase(PHASE_DISCONNECT);
-       the_channel->disconnect();
+       if (the_channel->disconnect)
+           the_channel->disconnect();
 
     fail:
        if (the_channel->cleanup)
diff -ur speedbundle.bak/ppp/pppd/plugins/pppoatm.c 
speedbundle-1.0/ppp/pppd/plugins/pppoatm.c
--- speedbundle.bak/ppp/pppd/plugins/pppoatm.c  2003-07-15 12:35:09.000000000 +0100
+++ speedbundle-1.0/ppp/pppd/plugins/pppoatm.c  2003-09-03 12:10:10.000000000 +0100
@@ -146,6 +146,12 @@
 {
        int fd;
        struct atm_qos qos;
+       static int last_fd = -1;
+
+       if (last_fd != -1) {
+               close(last_fd);
+               last_fd = -1;
+       }
 
        system ("/sbin/modprobe pppoatm");
 
@@ -173,6 +179,9 @@
        pppoatm_max_mru = lcp_wantoptions[0].mru;
        set_line_discipline_pppoatm(fd);
        strlcpy(ppp_devnam, devnam, sizeof(ppp_devnam));
+
+       last_fd = fd;
+       
        return fd;
 }
 


-- 
Thomas Leonard                  http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk       tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to