--- curl-7.16.1-20061221/lib/getinfo.c 2006-09-24 22:00:22.000000000 -0400 +++ curlinux/lib/getinfo.c 2006-12-21 17:59:27.407182000 -0500 @@ -104,6 +104,18 @@ break; } + /* safeguard against a null CURL handle */ + switch(info) { + default: + /* most options require a CURL handle */ + if(!data) + return CURLE_BAD_FUNCTION_ARGUMENT; + break; + case CURLINFO_SSL_ENGINES: + /* option is OK with a null CURL handle, no need to check it */ + break; + } + switch(info) { case CURLINFO_EFFECTIVE_URL: *param_charp = data->change.url?data->change.url:(char *)"";