Check condition of socket() return value was wrong.