diff --git a/crypto/dist/ipsec-tools/ChangeLog b/crypto/dist/ipsec-tools/ChangeLog index fb62207a0d4b..0794aaa5db5e 100644 --- a/crypto/dist/ipsec-tools/ChangeLog +++ b/crypto/dist/ipsec-tools/ChangeLog @@ -10,6 +10,7 @@ * src/racoon/{admin.c|sockmisc.c}: Fix memory leak (Coverity), refactor the code to use port get/set function * src/racoon/admin.c: fix memory leak (Coverity) + * src/racoon/algorithm.c: fix array overrun (Coverity) 2006-10-01 Emmanuel Dreyfus * src/racoon/isakmp.c: Avoid using NULL pointer (Coverity) diff --git a/crypto/dist/ipsec-tools/src/racoon/algorithm.c b/crypto/dist/ipsec-tools/src/racoon/algorithm.c index 0181c2d8295b..131cb53f5f6f 100644 --- a/crypto/dist/ipsec-tools/src/racoon/algorithm.c +++ b/crypto/dist/ipsec-tools/src/racoon/algorithm.c @@ -1,4 +1,4 @@ -/* $NetBSD: algorithm.c,v 1.6 2006/09/09 16:22:09 manu Exp $ */ +/* $NetBSD: algorithm.c,v 1.7 2006/10/02 21:33:14 manu Exp $ */ /* Id: algorithm.c,v 1.15 2006/05/23 20:23:09 manubsd Exp */ @@ -620,7 +620,7 @@ alg_ipsec_hmacdef(doi) for (i = 0; i < ARRAYLEN(ipsec_hmacdef); i++) if (doi == ipsec_hmacdef[i].doi) { plog(LLV_DEBUG, LOCATION, NULL, "hmac(%s)\n", - oakley_hmacdef[i].name); + ipsec_hmacdef[i].name); return &ipsec_hmacdef[i]; } return NULL;