From 504a8b89f845e75c3fc788eb6a894e062ad5a37b Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Fri, 15 Mar 2024 14:00:32 +0100 Subject: [PATCH] patch2 --- src/osmo_ss7_asp.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/osmo_ss7_asp.c b/src/osmo_ss7_asp.c index 5a04d5d2..034f60db 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);