diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2023-03-06 12:57:39 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-03-07 14:09:53 +0000 |
commit | a981e28128afe14d0c01a2eced51abf4b345f42f (patch) | |
tree | 985af768a06f68074d538cca8aa30d6f176336af | |
parent | c48b4651a16f651f0417c36c8930a2c78ecdf40f (diff) |
pcu_sock: do not mess with the osmo fd flags directly
When we disable the old socket connection, let's use
osmo_fd_read_disable().
Change-Id: I6b6854e9881c79b5c4794bde4ba4f6841dd06386
-rw-r--r-- | src/common/pcu_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index 119d7b88..7e87f6d3 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -1172,7 +1172,7 @@ static int pcu_sock_accept(struct osmo_fd *bfd, unsigned int flags) if (conn_bfd->fd >= 0) { LOGP(DPCU, LOGL_NOTICE, "PCU connects but we already have another active connection ?!?\n"); /* We already have one PCU connected, this is all we support */ - state->listen_bfd.when &= ~OSMO_FD_READ; + osmo_fd_read_disable(&state->listen_bfd); close(fd); return 0; } |