1
0
Эх сурвалжийг харах

Bug 622628 - fix coverity Defect Type: Integer handling issues

https://bugzilla.redhat.com/show_bug.cgi?id=622628

Comment:
slapd_system_strerror does not cover the return codes from the libdb
functions.  Instead, use dblayer_strerror for describing error number.
Noriko Hosoi 15 жил өмнө
parent
commit
75fe586491

+ 1 - 1
ldap/servers/slapd/back-ldbm/dbtest.c

@@ -138,7 +138,7 @@ int ldbm_back_db_test( Slapi_PBlock *pb )
 			if ( (err = dblayer_get_index_file( be, ai, &db, 0 /* no create */ ))
 			    != 0 ) {
 				fprintf( stderr, "could not get index for %s (error %d - %s)\n",
-				    buf, err, slapd_system_strerror( err ));
+				    buf, err, dblayer_strerror( err ));
 				continue;
 			}