From 8536a09b86a47e3fff02005aed38f5dc1fefb11a Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 1 Dec 2017 13:54:26 -0600 Subject: security-events: Fix SuccessfulAuth using_password declaration. The SuccessfulAuth using_password field was declared as a pointer to a uint32_t when the field was later read as a uint32_t value. This resulted in unnecessary casts and a non-portable field value reinterpret in main/security_events.c:add_json_object(). i.e., It would work on a 32 bit architecture but not on a 64 bit big endian architecture. Change-Id: Ia08bc797613a62f07e5473425f9ccd8d77c80935 --- include/asterisk/security_events_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/asterisk/security_events_defs.h') diff --git a/include/asterisk/security_events_defs.h b/include/asterisk/security_events_defs.h index 30a713606..1cae046f9 100644 --- a/include/asterisk/security_events_defs.h +++ b/include/asterisk/security_events_defs.h @@ -394,7 +394,7 @@ struct ast_security_event_successful_auth { * \brief Using password - if a password was used or not * \note required, 0 = no, 1 = yes */ - uint32_t *using_password; + uint32_t using_password; }; /*! -- cgit v1.2.3