diff options
author | Pierre Joye <pajoye@php.net> | 2009-08-26 22:24:10 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2009-08-26 22:24:10 +0000 |
commit | 24d9cfb97d0e25ad03ab103b22e0b33bc4fc29d6 (patch) | |
tree | 520e65324d7c2c555991e2ed7c22555dea375afd | |
parent | 5862937e5cfff86c827d5f578e1f974e2b2abc84 (diff) | |
download | php-git-24d9cfb97d0e25ad03ab103b22e0b33bc4fc29d6.tar.gz |
- fix #49372, segfault in php_curl_option_url
-rw-r--r-- | ext/curl/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 36ffec0f2d..ddc7558b41 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -183,7 +183,7 @@ static int php_curl_option_url(php_curl *ch, const char *url, const int len) /* return 0; } - if (!strncasecmp("file", uri->scheme, sizeof("file"))) { + if (uri->scheme && !strncasecmp("file", uri->scheme, sizeof("file"))) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Protocol 'file' disabled in cURL"); php_url_free(uri); return 0; |