Skip to content

Commit

Permalink
Fixed wrong return without locl release.
Browse files Browse the repository at this point in the history
Reported by Nick Altmann (@nikbyte)
Closes #1409

(cherry picked from commit 9cc75c0)
  • Loading branch information
bogdan-iancu committed Jun 28, 2018
1 parent 45b98dd commit e85d8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/event_flatstore/event_flatstore.c
Expand Up @@ -465,11 +465,11 @@ static void rotating(struct flat_socket *fs){
int index = fs->file_index_process;
int rc;

lock_get(global_lock);

if (!fs)
return;

lock_get(global_lock);

if (opened_fds[index] == -1) {
opened_fds[index] = open(fs->path.s,O_RDWR | O_APPEND | O_CREAT, file_permissions_oct);
if (opened_fds[index] < 0) {
Expand Down

0 comments on commit e85d8b4

Please sign in to comment.