[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Problem PPP Config Info
From: |
Nicolas Dioli |
Subject: |
[lwip-users] Problem PPP Config Info |
Date: |
Thu, 01 Apr 2010 14:46:37 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 |
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] Problem PPP Config Info,
Nicolas Dioli <=