diff options
author | xquery <jim@webcomposite.com> | 2020-06-08 08:42:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-08 11:04:44 +0200 |
commit | b950120b2d7ab70cb4aa900ae1e5ddc415afdf45 (patch) | |
tree | f628c2e186e980ee9f9ce279d3ee5edc7a46d9a3 /lib | |
parent | a3e972313b92413cc4876bfc60c066d0916e74a9 (diff) |
socks: remove unreachable breaks in socks.c and mime.c
Closes #5537
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mime.c | 1 | ||||
-rw-r--r-- | lib/socks.c | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/mime.c b/lib/mime.c index e85ef4206..4a87c4a3f 100644 --- a/lib/mime.c +++ b/lib/mime.c @@ -595,7 +595,6 @@ static size_t encoder_qp_read(char *buffer, size_t size, bool ateof, switch(qp_lookahead_eol(st, ateof, consumed)) { case -1: /* Need more data. */ return cursize; - break; case 0: /* Not followed by a CRLF. */ softlinebreak = 1; break; diff --git a/lib/socks.c b/lib/socks.c index 93b052cf0..4c1af7b9d 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -633,11 +633,10 @@ CURLcode Curl_SOCKS5(const char *proxy_user, failf(data, "No authentication method was acceptable."); return CURLE_COULDNT_CONNECT; } - failf(data, - "Undocumented SOCKS5 mode attempted to be used by server."); - return CURLE_COULDNT_CONNECT; } - break; + failf(data, + "Undocumented SOCKS5 mode attempted to be used by server."); + return CURLE_COULDNT_CONNECT; #if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI) case CONNECT_GSSAPI_INIT: /* GSSAPI stuff done non-blocking */ |