patch2
This commit is contained in:
parent
bc55e48e55
commit
504a8b89f8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue