[asterisk-commits] mmichelson: branch 1.8-digiumphones r360188 - /branches/1.8-digiumphones/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 21 10:44:59 CDT 2012
Author: mmichelson
Date: Wed Mar 21 10:44:55 2012
New Revision: 360188
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360188
Log:
Prevent potentially passing a NULL pointer to strcasecmp()
Modified:
branches/1.8-digiumphones/main/pbx.c
Modified: branches/1.8-digiumphones/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8-digiumphones/main/pbx.c?view=diff&rev=360188&r1=360187&r2=360188
==============================================================================
--- branches/1.8-digiumphones/main/pbx.c (original)
+++ branches/1.8-digiumphones/main/pbx.c Wed Mar 21 10:44:55 2012
@@ -4574,6 +4574,10 @@
}
ast_str_set(&hint_app, 0, "%s", app);
parse = parse_hint_presence(hint_app);
+ if (ast_strlen_zero(parse)) {
+ ao2_unlock(hint);
+ continue;
+ }
if (strcasecmp(parse, pc->provider)) {
/* The hint does not monitor the presence provider. */
ao2_unlock(hint);
More information about the asterisk-commits
mailing list