Skip to content

Commit

Permalink
ax25: Clear ui addresses in one case
Browse files Browse the repository at this point in the history
Otherwise they could get double freed.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Sep 21, 2024
1 parent ffffa06 commit 1d432b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gensio_ax25.c
Original file line number Diff line number Diff line change
Expand Up @@ -5156,6 +5156,8 @@ ax25_chan_alloc(struct ax25_base *base, const char *const args[],
chan->conf.report_raw = false;
chan->conf.conf_laddrs = NULL;
chan->conf.num_conf_laddrs = 0;
chan->conf.conf_uiaddrs = NULL;
chan->conf.num_conf_uiaddrs = 0;
chan->conf.addr = NULL;

/*
Expand Down

0 comments on commit 1d432b7

Please sign in to comment.