aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_bssgp_pcu.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-07-25 09:14:09 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-07-25 09:14:09 +0200
commitba1cd9bbc222bd62a4d1ef4bbb6d380347f04f5f (patch)
tree41f2bb4a2fa1dddc941411aa9ef2644c470247c0 /src/gprs_bssgp_pcu.cpp
parent6681bb8d0c847ad59a1e6109689ec322884e8e27 (diff)
Fixed two issues found by clang, pointed out by Holger
Diffstat (limited to 'src/gprs_bssgp_pcu.cpp')
-rw-r--r--src/gprs_bssgp_pcu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index d4a65574..c4d27e85 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -235,6 +235,9 @@ int gprs_bssgp_pcu_rx_ptp(struct msgb *msg, struct tlv_parsed *tp, struct bssgp_
uint8_t pdu_type = bgph->pdu_type;
unsigned rc = 0;
+ if (!bctx)
+ return -EINVAL;
+
/* If traffic is received on a BVC that is marked as blocked, the
* received PDU shall not be accepted and a STATUS PDU (Cause value:
* BVC Blocked) shall be sent to the peer entity on the signalling BVC */