summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Hurton <hurtonm@gmail.com>2010-07-10 22:57:47 +0200
committerMartin Hurton <hurtonm@gmail.com>2010-07-10 23:02:50 +0200
commitca057c7db8dcb2384e2498c938f3d83f64b78a7d (patch)
tree3cfbf91d6964abe54b5f2046530037eef187f879 /src
parent1f61c87ac527e2a75cabbce4ea4c5f916f4532e7 (diff)
Fix identity generation for transient inproc connections
Diffstat (limited to 'src')
-rw-r--r--src/socket_base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index 56c3b1a..c933954 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -635,8 +635,8 @@ void zmq::socket_base_t::attach_pipes (class reader_t *inpipe_,
xattach_pipes (inpipe_, outpipe_, peer_identity_);
}
else {
- blob_t identity (0, 1);
- identity += uuid_t ().to_blob ();
+ blob_t identity (1, 0);
+ identity.append (uuid_t ().to_blob (), uuid_t::uuid_blob_len);
xattach_pipes (inpipe_, outpipe_, identity);
}
}