From 7d478f2bf33e44b31e0e62ddc365a9ff5f104ae8 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 11 Jan 2018 10:38:49 +0100 Subject: osmo-bsc_nat: Return -EBADF if ussd_read_cb closes the connection Ticket: SYS#3208 Change-Id: I07fd9146fbe0658761d1f5d6739a9402e4163edd --- openbsc/src/osmo-bsc_nat/bsc_ussd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc') 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", -- cgit v1.2.3