Skip to content

Commit

Permalink
conacc: Null the connection data if the connection fails
Browse files Browse the repository at this point in the history
The data was freed, but the NULL was missed.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed May 5, 2024
1 parent f52f5af commit e00bd34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/gensio_conacc.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ conaccn_open_done(struct gensio *io, int err, void *open_data)
base_gensio_server_open_done(nadata->acc, ndata->io, err);
}
conaccn_finish_free(ndata);
nadata->ndata = NULL;
conaccna_deref_and_unlock(nadata);
}

Expand Down

0 comments on commit e00bd34

Please sign in to comment.