|
|
| Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
| version 1.112, 2000/05/06 16:35:14 | version 1.113, 2000/05/10 01:19:44 | ||
|---|---|---|---|
|
|
||
| if (opt == IPOPT_NOP) | if (opt == IPOPT_NOP) | ||
| optlen = 1; | optlen = 1; | ||
| else { | else { | ||
| if (cnt < IPOPT_OLEN + sizeof(*cp)) { | |||
| code = &cp[IPOPT_OLEN] - (u_char *)ip; | |||
| goto bad; | |||
| } | |||
| optlen = cp[IPOPT_OLEN]; | optlen = cp[IPOPT_OLEN]; | ||
| if (optlen <= 0 || optlen > cnt) { | if (optlen <= 0 || optlen > cnt) { | ||
| code = &cp[IPOPT_OLEN] - (u_char *)ip; | code = &cp[IPOPT_OLEN] - (u_char *)ip; |