Fix for bug #3082602: Crash on Autodiscover
commit23ca11dc05b9066cf07154e42eec7a3b4d315ff7
authorStefan Becker <stefan.becker@nokia.com>
Thu, 7 Oct 2010 21:16:37 +0000 (8 00:16 +0300)
committerAnibal Avelar <aavelar@cofradia.org>
Mon, 25 Oct 2010 04:34:15 +0000 (24 23:34 -0500)
treec97be6c89748e399bf1bca458e24b789cf70e0b2
parent9b46d4922bf258d70b1d6a31b2362afd40a4d225
Fix for bug #3082602: Crash on Autodiscover

The real problem was that we received a redirect response with an invalid URL.
But the check for that was at the wrong place and let to a use-after-free
situation.

Now we parse the URL first and if it is valid then we do the cloning of the
http_conn for the redirect.
(cherry picked from commit 83d7687366a12e339be060bcbc9b67cf781fc317)
src/core/http-conn.c