diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-11-26 14:51:45 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-14 11:06:09 +0200 |
commit | 719d1a38c67afb5e896d35bccb2cc3f922872ec8 (patch) | |
tree | c943ef810b7d73283ba0cebb802b2b0f128e8569 /.gitignore | |
parent | a7d7dd220cd8a94ca6ee341620f0cd40815ec3b7 (diff) |
osmo_stream_srv_fd_cb(): don't leak socket FDs on errors
So far we seem to assume that the accept_cb does all handling of socket
fd cleanup. However, there are cases where there is no accept_cb set,
the accept_cb returns error, or an earlier sctp_sock_activate_events()
or the activation of non-blocking mode fails.
For those cases, close the socket and return an error code.
Fixes: CID#57915
Change-Id: I3a3ce9194ab7ca5c1921fc79c2a1c9e10a552cf0
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions