Skip to content

Commit

Permalink
filed: prevent fd from a crash
Browse files Browse the repository at this point in the history
- filed crashed when the connection with a storage daemon could not
  be established
  • Loading branch information
franku committed Nov 15, 2018
1 parent 2467bad commit 172d810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/filed/dir_cmd.cc
Expand Up @@ -1609,6 +1609,7 @@ static bool StorageCmd(JobControlRecord *jcr)

bail_out:
delete storage_daemon_socket;
jcr->store_bsock = nullptr;
dir->fsend(BADcmd, "storage");
return false;
}
Expand Down

0 comments on commit 172d810

Please sign in to comment.