[asterisk-commits] core: Ensure presencestate subtype and message are NULL. (asterisk[14.0])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 22 08:56:23 CDT 2016
Joshua Colp has submitted this change and it was merged.
Change subject: core: Ensure presencestate subtype and message are NULL.
......................................................................
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: If38cd730e409e9a9b6eb9adef6591d15a9e61f86
---
M main/presencestate.c
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Verified
Corey Farrell: Looks good to me, but someone else must approve
diff --git a/main/presencestate.c b/main/presencestate.c
index 3be2ebe..c0a0ebd 100644
--- a/main/presencestate.c
+++ b/main/presencestate.c
@@ -161,6 +161,9 @@
[AST_PRESENCE_DND] = 7
};
+ *subtype = NULL;
+ *message = NULL;
+
while ((label = strsep(&labels, "&"))) {
enum ast_presence_state next_state = AST_PRESENCE_INVALID;
char *next_subtype = NULL;
--
To view, visit https://gerrit.asterisk.org/3958
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If38cd730e409e9a9b6eb9adef6591d15a9e61f86
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14.0
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-commits
mailing list