aboutsummaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-08 22:17:19 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-10 06:52:59 +0000
commit7cee4b67e90aeb260bde11ee7f299e507c94bc10 (patch)
tree8a2b91a982de8c727116e406b2c1b2866c1c2c4e /src/channel.c
parent0bacc71fc208e5cdf0727de027438b8e901ff666 (diff)
stream/datagram: Ensure reliable close/destroy
* when using osmo_*_destroy(), always call *_close() internally to make sure we don't free memory holding references to sockets that are still open * when closing the socket, always make sure to set the fd to -1 in all cases, to avoid attempts to avoid later close() on a new file using the same fd number as the socket closed previously. Change-Id: I29c37da6e8f5be8ab030e68952a8f92add146821
Diffstat (limited to 'src/channel.c')
0 files changed, 0 insertions, 0 deletions