fix curl security issue cve-2014-0138

Jira:  SB-2650
Integrate community fix for the issue cve-2014-0138
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.
Upstream-Status: Backported

Signed-off-by: Priyanka Shobhan <priyanka_shobhan@mentor.com>