diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-05-22 21:52:25 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-05-23 13:03:33 +0200 |
commit | b8dc47cf22e5f8d9f3fb037ed98d0ecc01c3064e (patch) | |
tree | b641c81dea67c5838e6239aa79c9407af9a10c4e | |
parent | 04c28293764756807330ef31c7ad123d55c23ad2 (diff) |
sap_fsm: Fix what appears to be a missing pointer dereference
sap_fsm.c: In function ‘sap_negotiate_msg_size’:
sap_fsm.c:103:15: warning: passing argument 1 of ‘__bswap_16’ makes integer from pointer without a cast [-Wint-conversion]
size = ntohs((uint16_t *) param->value);
^~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: Ie58af6162c67ae377809b42daa897ca3f3d72af1
-rw-r--r-- | src/host/layer23/src/common/sap_fsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/common/sap_fsm.c b/src/host/layer23/src/common/sap_fsm.c index f07488f0..742e200e 100644 --- a/src/host/layer23/src/common/sap_fsm.c +++ b/src/host/layer23/src/common/sap_fsm.c @@ -100,7 +100,7 @@ static void sap_negotiate_msg_size(struct osmosap_entity *sap, } /* Parse MaxMsgSize suggested by server */ - size = ntohs((uint16_t *) param->value); + size = ntohs(*(uint16_t *) param->value); if (size > SAP_MAX_MSG_SIZE) { cause = "suggested MaxMsgSize is too big for us"; goto error; |