diff options
| -rw-r--r-- | src/rabbit_binding.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl index 71b9960bb0..ff3fa5ac2d 100644 --- a/src/rabbit_binding.erl +++ b/src/rabbit_binding.erl @@ -176,10 +176,10 @@ remove(Binding, InnerFun) -> end. list(VHostPath) -> - Route = #route{binding = #binding{ - source = rabbit_misc:r(VHostPath, exchange), - destination = rabbit_misc:r(VHostPath, '_'), - _ = '_'}, + VHostResource = rabbit_misc:r(VHostPath, '_'), + Route = #route{binding = #binding{source = VHostResource, + destination = VHostResource, + _ = '_'}, _ = '_'}, [B || #route{binding = B} <- mnesia:dirty_match_object(rabbit_route, Route)]. |
