Hello,
i don't understand a part of the code when ppp wants check the peer's requested CIs and send appropriate response.
In function "lcp_reqci()" of "lcp.c".
I don't understand the condition:

 u_char *p;                  /* Pointer to next char to parse */
[...]
    if (l < 2 ||        /* Not enough data for CI header or */
        p[1] < 2 ||     /*  CI length too small or */
        p[1] > l) {     /*  CI length too big? */

the pointer *p is not initialized previously. So, ppp send a config reject to the modem and never check the incoming config info. Is this check important? Can i remove it? Is there an init to do ( memset, malloc)?

During my debug:
l=0x18
p: can't acess to memory

--
Nicolas Dioli
Etudiant ingénieur
AXUN SAS
Tél : +33 (0)6 78 18 53 12



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to