aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-06-06 10:25:15 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-06-06 10:25:15 +0200
commitc50f2d135653466b09cc8b2a199ccbd473c3c860 (patch)
tree2387de51135308532d05de5038012dd7430e670f /src
parent48e7b098f86207f8596651b5ba8242a3b834a868 (diff)
downloadlibssh-c50f2d135653466b09cc8b2a199ccbd473c3c860.tar.gz
libssh-c50f2d135653466b09cc8b2a199ccbd473c3c860.tar.xz
libssh-c50f2d135653466b09cc8b2a199ccbd473c3c860.zip
misc: Do not fall through and return a value
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c
index dc09bad2..6ff81ec7 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -968,6 +968,7 @@ int ssh_timeout_elapsed(struct ssh_timestamp *ts, int timeout) {
fprintf(stderr, "ssh_timeout_elapsed called with -2. this needs to "
"be fixed. please set a breakpoint on %s:%d and "
"fix the caller\n", __FILE__, __LINE__);
+ return 0;
case -1: /* -1 means infinite timeout */
return 0;
case 0: /* 0 means no timeout */