Merge pull request #43 from hintjens/master

Backporting fixes from master
This commit is contained in:
Pieter Hintjens 2013-12-06 14:30:23 -08:00
commit 571c668fa2
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -4,6 +4,8 @@
Bug Fixes
---------
* Fixed #775; compile error on Windows.
* Fixed #763; when talking to a ZMTP v1 peer (libzmq 2.2), a socket would
send an extra identity frame at the start of the connection.

View File

@ -119,7 +119,7 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
errno = EINVAL;
return NULL;
}
if (s->mailbox.get_fd () == -1)
if (s->mailbox.get_fd () == retired_fd)
return NULL;
alloc_assert (s);