diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-07 10:52:48 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-08 13:53:02 +0200 |
commit | 17fcdf6a310d4c80762455ee9d5e4f52bd55c809 (patch) | |
tree | 747916b49eb0913ab3405ecb3b4484ad104e77d9 /lib/security.c | |
parent | ad425d3e3e2e9b5325332f4b883cdcb23e3f071e (diff) | |
download | curl-17fcdf6a310d4c80762455ee9d5e4f52bd55c809.tar.gz |
lib: fix -Wassign-enum warnings
configure --enable-debug now enables -Wassign-enum with clang,
identifying several enum "abuses" also fixed.
Reported-by: Gisle Vanem
Bug: https://github.com/curl/curl/commit/879007f8118771f4896334731aaca5850a154675#commitcomment-42087553
Closes #5929
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/security.c b/lib/security.c index fbfa70741..89443af53 100644 --- a/lib/security.c +++ b/lib/security.c @@ -7,10 +7,10 @@ * rewrite to work around the paragraph 2 in the BSD licenses as explained * below. * - * Copyright (c) 1998, 1999, 2017 Kungliga Tekniska Högskolan + * Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * - * Copyright (C) 2001 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2001 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * All rights reserved. * @@ -529,7 +529,7 @@ static CURLcode choose_mech(struct connectdata *conn) if(ret != AUTH_CONTINUE) { if(ret != AUTH_OK) { /* Mechanism has dumped the error to stderr, don't error here. */ - return -1; + return CURLE_USE_SSL_FAILED; } DEBUGASSERT(ret == AUTH_OK); |