curl security fixes
Merge pull request #855 from pyhalov/curl

curl security fixes