X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=1b0c59e522a2120785601c222ab19c0d24664f13;hp=d328161e13eca231b8dd48a601290d93e695f800;hb=b045ad02a109f508cda8971667f75347ff63cfa1;hpb=dcc8cebf561d1e69e77b85fcd73b6a6c56b44748 diff --git a/http_request_api.c b/http_request_api.c index d328161..1b0c59e 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -615,7 +615,10 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti TSRMLS_FETCH_FROM_CTX(request->tsrm_ls); HTTP_CHECK_CURL_INIT(request->ch, http_curl_init(request), return FAILURE); - + + if (!request->url) { + return FAILURE; + } if (!(storage = http_request_storage_get(request->ch))) { return FAILURE; }