Skip to content

Commit

Permalink
qualify: fix call_get_qualle (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich authored Jan 8, 2025
1 parent 5e954c3 commit dde9d13
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions modules/qualify/qualify.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,20 @@ static void call_start_qualify(struct call *call,

static bool qualle_get_applyh(struct le *le, void *arg)
{
(void)le;
(void)arg;
const struct call *call = arg;
const struct qualle *qualle = le->data;

return true;
return qualle->call == call;
}


static struct qualle *call_get_qualle(const struct call *call)
static struct qualle *call_get_qualle(struct call *call)
{
if (!call)
return NULL;

struct le *le = hash_lookup(q.qual_map,
hash_fast_str(call_id(call)),
qualle_get_applyh, NULL);
struct le *le = hash_lookup(q.qual_map, hash_fast_str(call_id(call)),
qualle_get_applyh, call);

return le ? le->data : NULL;
}
Expand Down

0 comments on commit dde9d13

Please sign in to comment.