]> granicus.if.org Git - curl/commit
security: simplify choose_mech
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 May 2015 14:43:58 +0000 (16:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 May 2015 14:46:01 +0000 (16:46 +0200)
commit1514977bcde37c59f863a0f40c7d9f66d9e33370
tree87c21f0ed7e61460b85a82260e6691467c9a4bcb
parentfda0e74c226b75a1379f43c46a0e0de4297eb9fc
security: simplify choose_mech

Coverity CID 1299424 identified dead code because of checks that could
never equal true (if the mechanism's name was NULL).

Simplified the function by removing a level of pointers and removing the
loop and array that weren't used.
lib/security.c