fix curl security issue cve-2014-0138

Source: Mentor Graphics , Inc | Priyanka Shobhan  <Priyanka_Shobhan@mentor.com>
MR: SB-2650
Type:  Security Fix
Disposition: Local
Description:
Integrate community fix for the issue cve-2014-0138
Fix Details:
Fixed connection re-use when using different log-in credentials.
In addition to FTP, other connection based protocols such as IMAP, POP3,
SMTP, SCP, SFTP and LDAP require a new connection when different log-in
credentials are specified. Fixed the detection logic to include these
other protocols.

Signed-off-by: Priyanka Shobhan <priyanka_shobhan@mentor.com>