Skip to content

Commit

Permalink
fix: include first mapping entry in lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Mar 1, 2024
1 parent 2716a6b commit c7a0a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/raweth/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void _zp_raweth_unlock_tx_mutex(_z_transport_multicast_t *ztm) { _ZP_UNUS
#endif

static int _zp_raweth_find_map_entry(const _z_keyexpr_t *keyexpr, _z_raweth_socket_t *sock) {
for (int i = 1; i < _zp_raweth_mapping_array_len(&sock->_mapping); i++) {
for (int i = 0; i < _zp_raweth_mapping_array_len(&sock->_mapping); i++) {
// Find matching keyexpr
_zp_raweth_mapping_entry_t *entry = _zp_raweth_mapping_array_get(&sock->_mapping, i);
if (zp_keyexpr_intersect_null_terminated(keyexpr->_suffix, entry->_keyexpr._suffix) != _Z_RES_OK) {
Expand Down

0 comments on commit c7a0a50

Please sign in to comment.