libmsc/sgs_server.c: do not override rc in case of SCTP_SHUTDOWN_EVENT
Change-Id: I06215a7d3dc33f2e8adb77fa1b3f2ac5198dee26 Fixes: CID#190867
This commit is contained in:
parent
dcd709948c
commit
48a24cd85b
|
@ -40,7 +40,7 @@ static int sgs_conn_readable_cb(struct osmo_stream_srv *conn)
|
|||
struct msgb *msg = gsm29118_msgb_alloc();
|
||||
struct sctp_sndrcvinfo sinfo;
|
||||
int flags = 0;
|
||||
int rc;
|
||||
int rc = 0;
|
||||
|
||||
/* we cannot use osmo_stream_srv_recv() here, as we might get some out-of-band info from
|
||||
* SCTP. FIXME: add something like osmo_stream_srv_recv_sctp() to libosmo-netif and use
|
||||
|
@ -72,7 +72,6 @@ static int sgs_conn_readable_cb(struct osmo_stream_srv *conn)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
rc = 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue