aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-06-03 10:31:30 +0200
committerHarald Welte <laforge@osmocom.org>2020-06-03 10:32:27 +0200
commit77a856878fd87d6219434a6a505ddd43d5dca1ac (patch)
tree8cb2603726f921cbffe4104136ef27cf7914b72c /src
parent157ad6d7075ad56038c984ebf8634f1bc7c6c59c (diff)
src/stream.c: Don't leak socket during SCTP_EVENTS getsockoptHEADmaster
In Commit Icc49f347cdc0bb77a5c0e230597d662ac35b4acc I forgot to close the socket :/ Change-Id: I384c61dac0eac8ad999ff0d62350c2fcf3e57ea9
Diffstat (limited to 'src')
-rw-r--r--src/stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c
index 44ac1b4..9e5d805 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -103,6 +103,7 @@ static int determine_sctp_sockopt_event_subscribe_size(void)
return sd;
rc = getsockopt(sd, IPPROTO_SCTP, SCTP_EVENTS, buf, &buf_len);
+ close(sd);
if (rc < 0)
return rc;