aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-01-11 10:38:49 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2018-01-30 18:59:29 +0100
commit7d478f2bf33e44b31e0e62ddc365a9ff5f104ae8 (patch)
tree3f9d7e9d8c68851c5361ce3843f698f68efd955d /openbsc/src
parent58583aaf3b45d5d1e7333416eef27cd9d2514c9c (diff)
osmo-bsc_nat: Return -EBADF if ussd_read_cb closes the connection
Ticket: SYS#3208 Change-Id: I07fd9146fbe0658761d1f5d6739a9402e4163edd
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_ussd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_ussd.c b/openbsc/src/osmo-bsc_nat/bsc_ussd.c
index 7a96232f0..3b3bd724c 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_ussd.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_ussd.c
@@ -131,7 +131,7 @@ static int ussd_read_cb(struct osmo_fd *bfd)
return 0;
LOGP(DNAT, LOGL_ERROR, "USSD Connection was lost.\n");
bsc_nat_ussd_destroy(conn);
- return -1;
+ return -EBADF;
}
LOGP(DNAT, LOGL_NOTICE, "MSG from USSD: %s proto: %d\n",