]> granicus.if.org Git - curl/commit
parse_proxy: bail out on zero-length proxy names!
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Feb 2012 15:26:20 +0000 (16:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Feb 2012 15:26:20 +0000 (16:26 +0100)
commitecc93caaebe4d7c0168cedd99c3a6c42f7db9666
treed5f398bcb5c1e427f5d52a2990f25ddc9fadb3d8
parentebf31389927dd1f514c0a7092a6ba52ad003ad95
parse_proxy: bail out on zero-length proxy names!

The proxy parser function strips off trailing slashes off the proxy name
which could lead to a mistaken zero length proxy name which would be
treated as no proxy at all by subsequent functions!

This is now detected and an error is returned. Verified by the new test
1329.

Reported by: Chandrakant Bagul
Bug: http://curl.haxx.se/mail/lib-2012-02/0000.html
lib/url.c
tests/data/Makefile.am
tests/data/test1329 [new file with mode: 0644]