]> granicus.if.org Git - curl/commit
getinfo: Fix return code for unknown CURLINFO options
authorJay Satiro <raysatiro@yahoo.com>
Thu, 1 Oct 2015 20:39:40 +0000 (16:39 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 4 Oct 2015 21:29:43 +0000 (17:29 -0400)
commit69ea5797008071ee9a9ed7aae78136a6118bfa25
treedadbc262a89cd2c57389a63fee5ccd70a8b5c8f1
parentb1d55997e53076f96ae9ecc8b03daf3e57ef7318
getinfo: Fix return code for unknown CURLINFO options

- If a CURLINFO option is unknown return CURLE_UNKNOWN_OPTION.

Prior to this change CURLE_BAD_FUNCTION_ARGUMENT was returned on
unknown. That return value is contradicted by the CURLINFO option
documentation which specifies a return of CURLE_UNKNOWN_OPTION on
unknown.
lib/getinfo.c