From 47a080aac00a2fe12d9fc51930b9953c5c1d4b35 Mon Sep 17 00:00:00 2001 From: Gudmundur Adalsteinsson Date: Fri, 1 May 2020 22:27:44 +0000 Subject: [PATCH] Problem: extra blob copy Solution: use reference tag --- src/router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.cpp b/src/router.cpp index 1dfbb86a..77526e4e 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -434,7 +434,7 @@ int zmq::router_t::get_peer_state (const void *routing_id_, // TODO remove the const_cast, see comment in lookup_out_pipe const blob_t routing_id_blob ( static_cast (const_cast (routing_id_)), - routing_id_size_); + routing_id_size_, reference_tag_t ()); const out_pipe_t *out_pipe = lookup_out_pipe (routing_id_blob); if (!out_pipe) { errno = EHOSTUNREACH;