Skip to content

Commit

Permalink
choose_mech: fix return code
Browse files Browse the repository at this point in the history
Coverity CID 1241950. The pointer is never NULL but it might point to
NULL.
  • Loading branch information
bagder committed Oct 4, 2014
1 parent c2791ca commit 793ac80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/security.c
Expand Up @@ -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
Expand Down

0 comments on commit 793ac80

Please sign in to comment.