Fix for bug #3082602: Crash on Autodiscover
commit83d7687366a12e339be060bcbc9b67cf781fc317
authorStefan Becker <stefan.becker@nokia.com>
Thu, 7 Oct 2010 21:16:37 +0000 (8 00:16 +0300)
committerStefan Becker <stefan.becker@nokia.com>
Thu, 7 Oct 2010 21:16:37 +0000 (8 00:16 +0300)
tree48deb2c8c2839bb3dfd15a2f0d62dcc6c1469ece
parent7d1c454b6e5a4b1e48b52af5ccf3d21fb5852e94
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.
src/core/http-conn.c