summaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-25 11:05:10 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-25 11:05:10 +0200
commit726e2729fa264fa3221e567b42c49f2007a369fb (patch)
tree0669d8464ebe0ffece3321fdd771ecceb2e951b8 /src/gb/gprs_ns.c
parent7c91bfdd4e8a91d4888e772a6adbe8d406c2e599 (diff)
gprs: Address coverity warning on unchecked return of gprs_ns_tx_reset_ack
Fixes: Coverity CID 1111545
Diffstat (limited to 'src/gb/gprs_ns.c')
-rw-r--r--src/gb/gprs_ns.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c
index 027f6529..5fd287b0 100644
--- a/src/gb/gprs_ns.c
+++ b/src/gb/gprs_ns.c
@@ -803,7 +803,11 @@ static int gprs_ns_rx_reset(struct gprs_nsvc **nsvc, struct msgb *msg)
NS_PDUT_RESET,
NS_IE_NSEI);
rate_ctr_inc(&(*nsvc)->ctrg->ctr[NS_CTR_INV_NSEI]);
- gprs_ns_tx_reset_ack(*nsvc);
+ rc = gprs_ns_tx_reset_ack(*nsvc);
+ if (rc < 0)
+ LOGP(DNS, LOGL_ERROR, "TX failed (%d) to peer %s\n",
+ rc, gprs_ns_ll_str(*nsvc));
+
return 0;
}