mirror of https://gerrit.osmocom.org/libosmocore
gprs_ns2: always pass a tp to gprs_ns2_vc_rx
In preparation of checking the NSEI/NSVCI in ns2_vc_rx. It makes the function less error prone as the *tp is always defined. Change-Id: I3cd6ed20cdc1390075669e1d0101154c51f3997f
This commit is contained in:
parent
8f215c9fc9
commit
ba6345310f
|
@ -1047,7 +1047,7 @@ int ns2_recv_vc(struct gprs_ns2_vc *nsvc,
|
|||
struct msgb *msg)
|
||||
{
|
||||
struct gprs_ns_hdr *nsh = (struct gprs_ns_hdr *) msg->l2h;
|
||||
struct tlv_parsed tp;
|
||||
struct tlv_parsed tp = { };
|
||||
int rc = 0;
|
||||
|
||||
log_set_context(LOG_CTX_GB_NSE, nsvc->nse);
|
||||
|
@ -1099,7 +1099,7 @@ int ns2_recv_vc(struct gprs_ns2_vc *nsvc,
|
|||
break;
|
||||
|
||||
case NS_PDUT_UNITDATA:
|
||||
rc = gprs_ns2_vc_rx(nsvc, msg, NULL);
|
||||
rc = gprs_ns2_vc_rx(nsvc, msg, &tp);
|
||||
break;
|
||||
default:
|
||||
rc = ns2_tlv_parse(&tp, nsh->data,
|
||||
|
|
Loading…
Reference in New Issue