Skip to content

Commit

Permalink
rtld c18n: Don't wrap internal NULL function pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdjhb committed Jan 20, 2025
1 parent 6559c0d commit d0a216c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libexec/rtld-elf/rtld_c18n.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ tramp_should_include(const Obj_Entry *reqobj, const struct tramp_data *data)
{
const char *sym;

/* XXX: This not be needed once function pointers are wrapped. */
if (data->target == NULL)
return (false);

if (data->def == NULL)
return (true);

Expand Down

0 comments on commit d0a216c

Please sign in to comment.