curl: fix CVE-2014-0139

Integrate community fix for the issue CVE-2014-0139

Signed-off-by: Priyanka Shobhan <priyanka_shobhan@mentor.com>