summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-09-21 20:03:37 +0000
committerJoshua Colp <jcolp@digium.com>2016-09-21 20:03:37 +0000
commit323aff3a09b0a59de6e67be183e94fb15dd1e9a8 (patch)
tree4560b204a9bc494a0690a2eb6f93c12bcff7e29a /main
parent5cb3fc5d6777b03ac29bb7aa41a9b04076577513 (diff)
core: Ensure presencestate subtype and message are NULL.
When retrieving presence state information there is no guarantee that the subtype and message passed in are set to NULL. This change ensures they are. ASTERISK-26397 #close Change-Id: I61f8187972d5d8bbd7d6b7f4daa4f4f7e8237b23
Diffstat (limited to 'main')
-rw-r--r--main/presencestate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/presencestate.c b/main/presencestate.c
index 207e2aacb..56c903cf2 100644
--- a/main/presencestate.c
+++ b/main/presencestate.c
@@ -151,6 +151,9 @@ static enum ast_presence_state ast_presence_state_helper(const char *presence_pr
char *label = ast_strdupa(presence_provider);
int res = AST_PRESENCE_INVALID;
+ *subtype = NULL;
+ *message = NULL;
+
if (check_cache) {
res = presence_state_cached(presence_provider, subtype, message);
if (res != AST_PRESENCE_INVALID) {