patches/bdb_passwd.dif
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 9397 b16e349d18c5
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446

--- servers/slapd/back-bdb/passwd.c	16 Mar 2003 05:03:23 -0000	1.44
+++ servers/slapd/back-bdb/passwd.c	22 Mar 2003 15:59:41 -0000	1.46
@@ -39,8 +39,8 @@
 	struct berval id = { 0, NULL };
 	struct berval new = { 0, NULL };
 
-	struct berval dn;
-	struct berval ndn;
+	struct berval dn = { 0, NULL };
+	struct berval ndn = { 0, NULL };
 
 	u_int32_t	locker = 0;
 	DB_LOCK		lock;
@@ -278,6 +278,10 @@
 		
 	if( hash.bv_val != NULL ) {
 		free( hash.bv_val );
+	}
+
+	if( ndn.bv_val != NULL ) {
+		free( ndn.bv_val );
 	}
 
 	if( ltid != NULL ) {