Commit 72c02b15 authored by Ian Barber's avatar Ian Barber

Merge pull request #923 from hintjens/master

Revert "Fixed potential SEGFAULT."
parents a5e397a5 b1e74f79
...@@ -121,13 +121,10 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_, ...@@ -121,13 +121,10 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
errno = EINVAL; errno = EINVAL;
return NULL; return NULL;
} }
alloc_assert (s);
if (s->mailbox.get_fd () == -1) alloc_assert (s);
{ if (s->mailbox.get_fd () == retired_fd)
delete s;
return NULL; return NULL;
}
return s; return s;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment