summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-13 17:41:54 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-09-13 17:41:56 +0200
commit6228b859ba73e83ddda1352092a8c609542ea02b (patch)
tree3ae281fd7595b5230bb082662f8ede82b172d85c /openbsc
parentdbe2dff9cf2e538986053d1a54d9a7a136ba2fd3 (diff)
nat: return -EBADF in read wqueue cb on fd closed
bsc_msc_lost will close the current fd (without freeing it), so let's skip possible writes to an already closed fd bsc_msc_lost will close the current fd (without freeing it), so let's skip possible writes to an already closed fd.. Change-Id: I55c1a88f6524e897c70abf8ba18f1bb2b1f650aa
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 8cc0f2d3e..c8a9e74e9 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -864,7 +864,7 @@ static int ipaccess_msc_read_cb(struct osmo_fd *bfd)
msc_con->name, ret);
bsc_msc_lost(msc_con);
- return -1;
+ return -EBADF;
}
LOGP(DNAT, LOGL_DEBUG,