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

ITS#3421 flush and close logfile before releasing lock

parent 0bc4b775
Branches
Tags
No related merge requests found
......@@ -74,9 +74,10 @@ 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 );
}
......@@ -91,11 +91,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.
Please register or to comment