diff options
Diffstat (limited to 'camel/camel-http-stream.c')
-rw-r--r-- | camel/camel-http-stream.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-http-stream.c b/camel/camel-http-stream.c index d9dc6e0d61..3217a11f55 100644 --- a/camel/camel-http-stream.c +++ b/camel/camel-http-stream.c @@ -557,8 +557,11 @@ camel_http_stream_set_proxy (CamelHttpStream *http_stream, const char *proxy_url if (http_stream->proxy) camel_url_free (http_stream->proxy); - - http_stream->proxy = camel_url_new (proxy_url, NULL); + + if (proxy_url == NULL) + http_stream->proxy = NULL; + else + http_stream->proxy = camel_url_new (proxy_url, NULL); } void |