diff options
Diffstat (limited to 'src/app_thread.cpp')
-rw-r--r-- | src/app_thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app_thread.cpp b/src/app_thread.cpp index 666116f..69e0942 100644 --- a/src/app_thread.cpp +++ b/src/app_thread.cpp @@ -191,8 +191,8 @@ zmq::socket_base_t *zmq::app_thread_t::create_socket (int type_) s = new (std::nothrow) downstream_t (this); break; default: - // TODO: This should be EINVAL. - zmq_assert (false); + errno = EINVAL; + return NULL; } zmq_assert (s); |