peer: fix typo in error code
@@ -47,7 +47,7 @@ static int peer_dispatch_connection(Peer *peer, uint32_t events) {
else if (r == CONNECTION_E_QUOTA)
return PEER_E_QUOTA;
else if (r == CONNECTION_E_PROTOCOL_VIOLATION)
- return CONNECTION_E_PROTOCOL_VIOLATION;
+ return PEER_E_PROTOCOL_VIOLATION;
return error_fold(r);
}
