CVS people.

This has been up and running for me since the 11th without any hitches 
or disconnections.

Can you apply before the release goes out. (It is a bug fix)

Regards,

Tim.

(Probably be a offset of about 2 - I can regenerate with exact lines
if you wish)


Index: src/pppoa3.c
===================================================================
RCS file: /cvsroot/speedtouch/speedtouch/src/pppoa3.c,v
retrieving revision 1.23
diff -u -r1.23 pppoa3.c
--- src/pppoa3.c        18 Apr 2002 19:46:28 -0000      1.23
+++ src/pppoa3.c        9 May 2002 18:17:45 -0000
@@ -1190,10 +1192,8 @@
                                report(2, REPORT_DEBUG|REPORT_DATE|REPORT_DUMP, "PPP 
packet read from ppp(d) (%d bytes long)\n", async_buf, data, data);
                        }
 
-                       /* ASSERT data>0 here */
-                       --data;
-                   
-                       if(PPPState == STATE_WAITFOR_FRAME_ADDR) {
+                       if(data && PPPState == STATE_WAITFOR_FRAME_ADDR) {
+                               data--;
                                if (*ptr++ == FRAME_ADDR) {
                                        PPPState = STATE_DROP_PROTO;
                                        PPPPacketSize = 0;
@@ -1201,15 +1201,17 @@
                                }
                        }
                    
-                       if(PPPState == STATE_DROP_PROTO) {
+                       if(data && PPPState == STATE_DROP_PROTO) {
+                               data--;
                                if (*ptr++ == (FRAME_CTRL ^ FRAME_ENC)) {
                                        PPPState = STATE_BUILDING_PACKET;
                                }
                        }
 
                        /* Start building frame */
-                       if(PPPState == STATE_BUILDING_PACKET) {
+                       if(data && PPPState == STATE_BUILDING_PACKET) {
                                unsigned char c = *ptr++;
+                               data--;
                                switch(c) {
                                case FRAME_ESC:
                                        PPPXorValue = FRAME_ENC;


-- 
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t," 
and there was light.

     http://tjw.hn.org/      http://www.locofungus.btinternet.co.uk/



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe

        

Reply via email to