]> granicus.if.org Git - curl/commit
cyassl: Fix certificate load check
authorJay Satiro <raysatiro@yahoo.com>
Thu, 2 Apr 2015 05:51:07 +0000 (01:51 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Apr 2015 15:18:42 +0000 (17:18 +0200)
commit0b5efa57ad7118735659542c11e725666447bf5f
tree03e72af6d9afcdc6385d059372749a9536cadce9
parent21e82bd635124881a4a2ac08b3b9b28efe98afee
cyassl: Fix certificate load check

SSL_CTX_load_verify_locations can return negative values on fail,
therefore to check for failure we check if load is != 1 (success)
instead of if load is == 0 (failure), the latter being incorrect given
that behavior.
lib/vtls/cyassl.c