Skip to content
Snippets Groups Projects
Commit 4377da0c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix some locking issues

parent a530b75b
No related branches found
No related tags found
No related merge requests found
Pipeline #5174 failed
...@@ -320,7 +320,7 @@ bool ...@@ -320,7 +320,7 @@ bool
sftpc_open(sftpc_state_t state, char *path, uint32_t flags, sftp_file_attr_t attr, sftp_dirhandle_t *handle) sftpc_open(sftpc_state_t state, char *path, uint32_t flags, sftp_file_attr_t attr, sftp_dirhandle_t *handle)
{ {
if (!enter_function(state)) if (!enter_function(state))
return exit_function(state, false); return false;
assert(path); assert(path);
if (path == NULL) if (path == NULL)
return exit_function(state, false); return exit_function(state, false);
...@@ -385,7 +385,7 @@ bool ...@@ -385,7 +385,7 @@ bool
sftpc_read(sftpc_state_t state, sftp_filehandle_t handle, uint64_t offset, uint32_t len, sftp_str_t *ret) sftpc_read(sftpc_state_t state, sftp_filehandle_t handle, uint64_t offset, uint32_t len, sftp_str_t *ret)
{ {
if (!enter_function(state)) if (!enter_function(state))
return exit_function(state, false); return false;
assert(ret); assert(ret);
if (ret == NULL) if (ret == NULL)
return exit_function(state, false); return exit_function(state, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment