peer: gracefully refuse replies to anything but valid unique names
This is not a fatal error, any destination hat is not in our namespace
of unique names should simply be treated as if there is no pending
reply object for that name.
@@ -435,8 +435,12 @@ int peer_queue_reply(Peer *sender, const char *destination, uint32_t reply_seria
int r;
r = unique_name_to_id(destination, &id);
- if (r)
+ if (r) {
+ if (r > 0)
+ return PEER_E_UNEXPECTED_REPLY;
+
return error_fold(r);
+ }
slot = reply_slot_get_by_id(&sender->replies_outgoing, id, reply_serial);
if (!slot)
