summaryrefslogtreecommitdiff
path: root/res/res_pjsip
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-12-01 13:54:26 -0600
committerRichard Mudgett <rmudgett@digium.com>2017-12-04 17:21:27 -0600
commit8536a09b86a47e3fff02005aed38f5dc1fefb11a (patch)
tree6c6b8d81fa8cccc2bede76cc41af36519b515ec1 /res/res_pjsip
parent890ffcd67247479d5b12f074a79ae2383fc2cdfc (diff)
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
Diffstat (limited to 'res/res_pjsip')
-rw-r--r--res/res_pjsip/security_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/security_events.c b/res/res_pjsip/security_events.c
index ea3810bfd..b31445b0c 100644
--- a/res/res_pjsip/security_events.c
+++ b/res/res_pjsip/security_events.c
@@ -186,7 +186,7 @@ void ast_sip_report_auth_success(struct ast_sip_endpoint *endpoint, pjsip_rx_dat
.transport = transport,
},
.common.session_id = call_id,
- .using_password = auth ? (uint32_t *)1 : (uint32_t *)0,
+ .using_password = auth ? 1 : 0,
};
security_event_populate(rdata, call_id, sizeof(call_id), &local, &remote);