Skip to content
Snippets Groups Projects
Commit 509990a9 authored by Howard Chu's avatar Howard Chu
Browse files

Import ITS#3421 fix from HEAD - replog locking consistency

parent cddab86f
No related branches found
No related tags found
No related merge requests found
......@@ -84,9 +84,11 @@ lock_fopen( const char *fname, const char *type, FILE **lfp )
int
lock_fclose( FILE *fp, FILE *lfp )
{
int rc = fclose( fp );
/* unlock */
ldap_unlockf( fileno(lfp) );
fclose( lfp );
return( fclose( fp ) );
return( rc );
}
......@@ -101,11 +101,13 @@ lock_fclose(
FILE *lfp
)
{
int rc = fclose( fp );
/* unlock */
ldap_unlockf( fileno(lfp) );
fclose( lfp );
return( fclose( fp ) );
return( rc );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment