aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2024-03-15 14:00:32 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2024-03-15 14:00:32 +0100
commit504a8b89f845e75c3fc788eb6a894e062ad5a37b (patch)
tree57874681d28b6a4ec4511be6f315d6b7d805eca0
parentbc55e48e557dfe800eae861df95a3022c0b77fa2 (diff)
-rw-r--r--src/osmo_ss7_asp.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/osmo_ss7_asp.c b/src/osmo_ss7_asp.c
index 5a04d5d..034f60d 100644
--- a/src/osmo_ss7_asp.c
+++ b/src/osmo_ss7_asp.c
@@ -950,12 +950,6 @@ static int ipa_cli_read_cb(struct osmo_stream_cli *conn, struct msgb *msg)
int fd = osmo_stream_cli_get_fd(conn);
struct osmo_ss7_asp *asp = osmo_stream_cli_get_data(conn);
- if (msgb_length(msg) == 0) {
- xua_cli_close_and_reconnect(asp->client);
- msgb_free(msg);
- return 0;
- }
-
msg->dst = asp;
rate_ctr_inc2(asp->ctrg, SS7_ASP_CTR_PKT_RX_TOTAL);
/* we can use the 'fd' return value of osmo_stream_srv_get_fd() here unverified as all we do
@@ -1009,12 +1003,6 @@ static int xua_cli_read_cb(struct osmo_stream_cli *conn, struct msgb *msg)
goto out;
}
- if (msgb_length(msg) == 0) {
- xua_cli_close_and_reconnect(conn);
- rc = 0;
- goto out;
- }
-
ppid = msgb_sctp_ppid(msg);
msg->dst = asp;
rate_ctr_inc2(asp->ctrg, SS7_ASP_CTR_PKT_RX_TOTAL);