Module Name:    src
Committed By:   wiz
Date:           Sun Jan 17 23:02:48 UTC 2010

Modified Files:
        src/crypto/dist/ipsec-tools/src/racoon: eaytest.c ipsec_doi.c

Log Message:
Close file handles after using them. Found by cppcheck.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/crypto/dist/ipsec-tools/src/racoon/eaytest.c
cvs rdiff -u -r1.43 -r1.44 src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/dist/ipsec-tools/src/racoon/eaytest.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/eaytest.c:1.9 src/crypto/dist/ipsec-tools/src/racoon/eaytest.c:1.10
--- src/crypto/dist/ipsec-tools/src/racoon/eaytest.c:1.9	Tue Jul 15 00:47:09 2008
+++ src/crypto/dist/ipsec-tools/src/racoon/eaytest.c	Sun Jan 17 23:02:48 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: eaytest.c,v 1.9 2008/07/15 00:47:09 mgrooms Exp $	*/
+/*	$NetBSD: eaytest.c,v 1.10 2010/01/17 23:02:48 wiz Exp $	*/
 
 /* Id: eaytest.c,v 1.22 2005/06/19 18:02:54 manubsd Exp */
 
@@ -572,6 +572,7 @@
 
 		n++;
 	}
+	closedir(dirp);
 
 	p = (char **)realloc(certs, (n + 1) * sizeof(certs));
 	if (p == NULL)

Index: src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c:1.43 src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c:1.44
--- src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c:1.43	Tue May 19 09:34:52 2009
+++ src/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c	Sun Jan 17 23:02:48 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: ipsec_doi.c,v 1.43 2009/05/19 09:34:52 tteras Exp $	*/
+/*	$NetBSD: ipsec_doi.c,v 1.44 2010/01/17 23:02:48 wiz Exp $	*/
 
 /* Id: ipsec_doi.c,v 1.55 2006/08/17 09:20:41 vanhu Exp */
 
@@ -3830,6 +3830,7 @@
 				memcpy(new->v + tlen, b, len);
 				tlen += len;
 			}
+			fclose(fp);
 			break;
 		}
 

Reply via email to