]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
choose_mech: fix return code
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 Oct 2014 13:37:42 +0000 (15:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 Oct 2014 13:37:42 +0000 (15:37 +0200)
Coverity CID 1241950. The pointer is never NULL but it might point to
NULL.

lib/security.c

index cc3cc35d2f01466bbdf21fa83da7656ed15741dd..ca17c56417c19a6a042287ce0e121678453e0d6a 100644 (file)
@@ -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