From Brian Haley <brian.haley@hp.com>

There's a cut/paste error in cmp_aproppair_i(), it's supposed to be
checking spi_size but it's not.  I'm not sure this patch is correct, but
what's there isn't either.
This commit is contained in:
manu 2008-02-25 20:06:55 +00:00
parent 652f27646d
commit 6ee9ace370
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipsec_doi.c,v 1.33 2008/02/10 12:11:08 spz Exp $ */
/* $NetBSD: ipsec_doi.c,v 1.34 2008/02/25 20:06:55 manu Exp $ */
/* Id: ipsec_doi.c,v 1.55 2006/08/17 09:20:41 vanhu Exp */
@ -1062,10 +1062,10 @@ cmp_aproppair_i(a, b)
return -1;
}
if (p->prop->proto_id != r->prop->proto_id) {
if (p->prop->spi_size != r->prop->spi_size) {
plog(LLV_ERROR, LOCATION, NULL,
"invalid spi size: %d.\n",
p->prop->proto_id);
p->prop->spi_size);
return -1;
}