aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ssluse.c6
-rw-r--r--tests/server/tftpd.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 674477ba1..fdc540e90 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -802,13 +802,13 @@ static int hostmatch(const char *hostname, const char *pattern)
if (hostmatch(hostname++,pattern) == HOST_MATCH)
return HOST_MATCH;
}
- return HOST_NOMATCH;
+ break;
}
if (toupper(c) != toupper(*hostname++))
- return HOST_NOMATCH;
+ break;
}
- /* we never reach this point */
+ return HOST_NOMATCH;
}
static int
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index da8d5713b..9562f5a84 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -366,9 +366,9 @@ static int synchnet(curl_socket_t f /* socket to flush */)
(struct sockaddr *)&from, &fromlen);
}
else
- return j;
+ break;
}
- /* we never reach this point */
+ return j;
}
/*