summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 3e3ddec..dd8fc24 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -81,8 +81,9 @@ void zmq::object_t::process_command (command_t &cmd_)
case command_t::attach:
process_attach (cmd_.args.attach.engine,
+ cmd_.args.attach.peer_identity ?
blob_t (cmd_.args.attach.peer_identity,
- cmd_.args.attach.peer_identity_size));
+ cmd_.args.attach.peer_identity_size) : blob_t ());
process_seqnum ();
break;