summaryrefslogtreecommitdiff
path: root/channels/sip
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-11-19 17:22:29 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-11-19 17:22:29 +0000
commita7c9f4c668c3b5d42f98d06ab0c20d81bd5fd25e (patch)
tree78fc178143752b565888ea2d16d7c60591d42884 /channels/sip
parent7f8b7ace724e8c67e161763b721afbb605166f0e (diff)
ast_str: Fix improper member access to struct ast_str members.
Accessing members of struct ast_str outside of the string manipulation API routines is invalid since struct ast_str is supposed to be treated as opaque. Review: https://reviewboard.asterisk.org/r/4194/ ........ Merged revisions 428244 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 428245 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 428246 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip')
-rw-r--r--channels/sip/security_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/sip/security_events.c b/channels/sip/security_events.c
index 28a14f8a5..691c5bde1 100644
--- a/channels/sip/security_events.c
+++ b/channels/sip/security_events.c
@@ -311,7 +311,7 @@ int sip_report_security_event(const struct sip_pvt *p, const struct sip_request
authtoken = sip_get_header(req, reqheader);
buf = ast_str_thread_get(&check_auth_buf, CHECK_AUTH_BUF_INITLEN);
ast_str_set(&buf, 0, "%s", authtoken);
- c = buf->str;
+ c = ast_str_buffer(buf);
sip_digest_parser(c, keys);