Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qualify: fix call_get_qualle #61

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
maximilianfridrich marked this conversation as resolved.
Show resolved Hide resolved
{
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
Loading