X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fipv6cp.c;h=b5e845a35a9d97a441cd77ee2d7f8a88e76dc4e9;hp=2d062c52b34b2c18ad6ba11755f8f4804cf323e7;hb=96a47326d0073d66e287fb05fa34d119f46744ed;hpb=9042dbd296cb6a3f842d569536ecec7525506700 diff --git a/pppd/ipv6cp.c b/pppd/ipv6cp.c index 2d062c5..b5e845a 100644 --- a/pppd/ipv6cp.c +++ b/pppd/ipv6cp.c @@ -135,10 +135,10 @@ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: ipv6cp.c,v 1.17 2002/12/04 23:03:32 paulus Exp $ + * $Id: ipv6cp.c,v 1.18 2003/07/28 12:25:41 carlsonj Exp $ */ -#define RCSID "$Id: ipv6cp.c,v 1.17 2002/12/04 23:03:32 paulus Exp $" +#define RCSID "$Id: ipv6cp.c,v 1.18 2003/07/28 12:25:41 carlsonj Exp $" /* * TODO: @@ -752,10 +752,10 @@ ipv6cp_nakci(f, p, len) * If they want to negotiate about interface identifier, we comply. * If they want us to ask for compression, we refuse. */ - while (len > CILEN_VOID) { + while (len >= CILEN_VOID) { GETCHAR(citype, p); GETCHAR(cilen, p); - if( (len -= cilen) < 0 ) + if ( cilen < CILEN_VOID || (len -= cilen) < 0 ) goto bad; next = p + cilen - 2;