aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bssap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c
index 35a90ab05..56eb82e9c 100644
--- a/openbsc/src/bssap.c
+++ b/openbsc/src/bssap.c
@@ -527,7 +527,7 @@ static int bssmap_handle_assignm_req(struct sccp_connection *conn,
goto reject;
}
- cic = ntohs(*(u_int16_t *)TLVP_VAL(&tp, GSM0808_IE_CIRCUIT_IDENTITY_CODE));
+ cic = ntohs(read_data16(TLVP_VAL(&tp, GSM0808_IE_CIRCUIT_IDENTITY_CODE)));
timeslot = cic & 0x1f;
multiplex = (cic & ~0x1f) >> 5;