fix crash in ssl connection
Merge pull request #4 from akgupta/ssl_agent_bug

fix crash in ssl connection