Fix array overrun (Coverity 4172)

This commit is contained in:
manu 2006-10-02 21:33:14 +00:00
parent e5d24ec446
commit 520ec462f7
2 changed files with 3 additions and 2 deletions

View File

@ -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 <manu@netbsd.org>
* src/racoon/isakmp.c: Avoid using NULL pointer (Coverity)

View File

@ -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;