summaryrefslogtreecommitdiff
path: root/src/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.cpp b/src/object.cpp
index fc08785..9a4bd74 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -88,8 +88,8 @@ void zmq::object_t::process_command (command_t &cmd_)
case command_t::bind:
process_bind (cmd_.args.bind.in_pipe, cmd_.args.bind.out_pipe,
- blob_t (cmd_.args.bind.peer_identity,
- cmd_.args.bind.peer_identity_size));
+ cmd_.args.bind.peer_identity ? blob_t (cmd_.args.bind.peer_identity,
+ cmd_.args.bind.peer_identity_size) : blob_t ());
process_seqnum ();
break;