summaryrefslogtreecommitdiff
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-12-22 13:44:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-12-22 13:44:10 +0000
commit61a6992559ecf6719a077399eaf6050862bbfc6f (patch)
tree893aa639297db555387f9f7abdde9daf381806f1 /lib/getinfo.c
parentebee2e323d42e7ef4017fcf99e67e02b083d8002 (diff)
downloadcurl-61a6992559ecf6719a077399eaf6050862bbfc6f.tar.gz
Curl_getinfo() now checks for a NULL SessionHandle pointer
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 8e44b53ff..5cf3bcacd 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -77,6 +77,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
struct curl_slist **param_slistp=NULL;
char buf;
+ if(!data)
+ return CURLE_BAD_FUNCTION_ARGUMENT;
+
va_start(arg, info);
switch(info&CURLINFO_TYPEMASK) {