diff options
author | arehbein <arehbein@sysmocom.de> | 2023-09-25 23:15:52 +0200 |
---|---|---|
committer | arehbein <arehbein@sysmocom.de> | 2023-09-25 23:16:07 +0200 |
commit | 0c4c47ddfb2d90d88045e85702885fef92d8634c (patch) | |
tree | 625332f2f6c7f0ab0ea0459f18eae79c89aa201c | |
parent | 35fcd6025d92c196e70a90c5bb7d85ead0b43f7a (diff) |
stream_srv: Set io_fd pointer to NULL after freeing
Change-Id: Idb815a3e4e51189f9f1f3cceedd570dff9caf401
-rw-r--r-- | src/stream_srv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stream_srv.c b/src/stream_srv.c index b404604..ca22e1b 100644 --- a/src/stream_srv.c +++ b/src/stream_srv.c @@ -858,6 +858,7 @@ void osmo_stream_srv_destroy(struct osmo_stream_srv *conn) break; case OSMO_STREAM_MODE_OSMO_IO: osmo_iofd_free(conn->iofd); + conn->iofd = NULL; break; default: OSMO_ASSERT(false); |