aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2023-09-25 23:15:52 +0200
committerarehbein <arehbein@sysmocom.de>2023-09-25 23:16:07 +0200
commit0c4c47ddfb2d90d88045e85702885fef92d8634c (patch)
tree625332f2f6c7f0ab0ea0459f18eae79c89aa201c
parent35fcd6025d92c196e70a90c5bb7d85ead0b43f7a (diff)
stream_srv: Set io_fd pointer to NULL after freeing
-rw-r--r--src/stream_srv.c1
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);