laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/30685 )

Change subject: osmo_stream_srv_link_close(): properly handle NULL input
......................................................................

osmo_stream_srv_link_close(): properly handle NULL input

Related: OS#5568
Change-Id: Ie15bb3dc99bfe18065e03fde68d517b0d389b7ad
---
M src/stream.c
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/stream.c b/src/stream.c
index feb6c22..85779db 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -1272,6 +1272,9 @@
  *  \param[in] link Stream Server Link to close */
 void osmo_stream_srv_link_close(struct osmo_stream_srv_link *link)
 {
+       if (!link)
+               return;
+
        if (link->ofd.fd == -1)
                return;
        osmo_fd_unregister(&link->ofd);

--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/30685
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ie15bb3dc99bfe18065e03fde68d517b0d389b7ad
Gerrit-Change-Number: 30685
Gerrit-PatchSet: 2
Gerrit-Owner: msuraev <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to