Fix #2997639: crash when HTTP redirect to URL without relative part
commit0504b532e6fe8f6ae83a2242c1541e9475e43e0a
authorStefan Becker <stefan.becker@nokia.com>
Thu, 6 May 2010 18:13:22 +0000 (6 21:13 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Thu, 6 May 2010 18:13:22 +0000 (6 21:13 +0300)
treec0b680d41e26580eb77c4281b319021c47ae51c9
parent92d5be92ee1614df857dde15920c72fd5c2bd009
Fix #2997639: crash when HTTP redirect to URL without relative part

http_conn_parse_url() didn't make sure that host/rel_url are initialized to
NULL. If the URL parsing failed then random values were left in variables
which lead to a glib abort on g_free().

Also added host/url NULL checks in http_conn_setup()/http_conn_send0() so that
no connection attempt is made for URLs that fail to parse.
src/core/http-conn.c