ipaccess: Call line->ops->sign_link_down() only if set

This op must not necessarily be set by the user, so check if it is set
before calling it.

Change-Id: I666c5bbf157fe604e336df44f7eac098572d42ba
This commit is contained in:
Pau Espin 2022-09-16 19:24:07 +02:00
parent 3d3e5afb52
commit c4c3a856ad
1 changed files with 2 additions and 1 deletions

View File

@ -123,6 +123,7 @@ static int ipaccess_drop(struct osmo_fd *bfd, struct e1inp_line *line)
e1i_ts->pending_msg = NULL;
/* e1inp_sign_link_destroy releases the socket descriptors for us. */
if (line->ops->sign_link_down)
line->ops->sign_link_down(line);
e1inp_line_put2(line, __func__);