summaryrefslogtreecommitdiff
path: root/plugins/snep-validation.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/snep-validation.c')
-rw-r--r--plugins/snep-validation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/snep-validation.c b/plugins/snep-validation.c
index 2094630..682a090 100644
--- a/plugins/snep-validation.c
+++ b/plugins/snep-validation.c
@@ -152,7 +152,7 @@ static near_bool_t snep_validation_server_req_get(int client_fd, void *data)
/* check if the acceptable length is higher than the data_len
* otherwise returns a NEAR_SNEP_RESP_EXCESS
*/
- acceptable_length = GUINT32_FROM_BE(*(uint32_t *)snep_data->nfc_data);
+ acceptable_length = near_get_be32(snep_data->nfc_data);
/* Look if there are some incoming ndef stored */
incoming_ndefs = g_hash_table_lookup(snep_validation_hash,