summaryrefslogtreecommitdiff
path: root/lib/security.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-04 15:37:42 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-04 15:37:42 +0200
commit793ac8035c14c47d0cf8c138304e65478804ca74 (patch)
tree5f6c0e3ca827c8a6c67d0e9a1850b139d1f04240 /lib/security.c
parentc2791caf53826e1dfa20483fee493033594caefc (diff)
downloadcurl-793ac8035c14c47d0cf8c138304e65478804ca74.tar.gz
choose_mech: fix return code
Coverity CID 1241950. The pointer is never NULL but it might point to NULL.
Diffstat (limited to 'lib/security.c')
-rw-r--r--lib/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/security.c b/lib/security.c
index cc3cc35d2..ca17c5641 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -564,7 +564,7 @@ static CURLcode choose_mech(struct connectdata *conn)
break;
}
- return mech != NULL ? CURLE_OK : CURLE_FAILED_INIT;
+ return *mech != NULL ? CURLE_OK : CURLE_FAILED_INIT;
}
CURLcode