curl_easy_getopt: Handle API violation gracefully
authorChristian Grothoff <christian@grothoff.org>
Wed, 27 Nov 2013 22:28:26 +0000 (23:28 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 27 Nov 2013 23:35:34 +0000 (23:35 +0000)
commit59f1209fadb6a32f7a957318d881185480580e91
tree1fb4ea7aee82f349b771949dfa351c3986b520ee
parent7b9365c65f3228e1840d4abd507f03e3849817a1
curl_easy_getopt: Handle API violation gracefully

This fixes a NULL dereference in the case where the client asks for
CURLINFO_TLS_SESSION data after the (TLS) session has already been
destroyed (i.e. curl_easy_perform has already completed for this
handle). Instead of crashing, we now return a CURLSSLBACKEND_NONE
error.
lib/getinfo.c