Hi, after rereading this part of code many times I think this patch is necessary for reporting the correct error. I would also recommend to avoid using "name" and "name_" as variable names, it makes reading harder and leads to this kind of errors. Cheers, Vittorio -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-ssl_sock-use-the-correct-error-value.patch Type: text/x-patch Size: 791 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140604/386fa580/attachment.patch>