mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
sftpserver: Avoid unreachable code line
CID 1513155 Thanks coverity Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
@@ -717,8 +717,7 @@ void sftp_handle_remove(sftp_session sftp, void *handle)
|
|||||||
static const char *
|
static const char *
|
||||||
ssh_str_error(int u_errno)
|
ssh_str_error(int u_errno)
|
||||||
{
|
{
|
||||||
switch (u_errno)
|
switch (u_errno) {
|
||||||
{
|
|
||||||
case SSH_FX_NO_SUCH_FILE:
|
case SSH_FX_NO_SUCH_FILE:
|
||||||
return "No such file";
|
return "No such file";
|
||||||
case SSH_FX_PERMISSION_DENIED:
|
case SSH_FX_PERMISSION_DENIED:
|
||||||
@@ -730,7 +729,6 @@ ssh_str_error(int u_errno)
|
|||||||
default:
|
default:
|
||||||
return "Operation failed";
|
return "Operation failed";
|
||||||
}
|
}
|
||||||
return "Operation failed";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user