Check condition of socket() return value was wrong.
Merge pull request #16 from iehoyeba/master

Check condition of socket() return value was wrong.