[asterisk-commits] kmoore: branch kmoore/stasis-cel_refactoring r388721 - /team/kmoore/stasis-ce...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 14 15:26:14 CDT 2013
Author: kmoore
Date: Tue May 14 15:26:13 2013
New Revision: 388721
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388721
Log:
Make sure not to deref NULLs
Modified:
team/kmoore/stasis-cel_refactoring/main/cel.c
Modified: team/kmoore/stasis-cel_refactoring/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-cel_refactoring/main/cel.c?view=diff&rev=388721&r1=388720&r2=388721
==============================================================================
--- team/kmoore/stasis-cel_refactoring/main/cel.c (original)
+++ team/kmoore/stasis-cel_refactoring/main/cel.c Tue May 14 15:26:13 2013
@@ -847,6 +847,10 @@
struct ast_channel_snapshot *old_snapshot,
struct ast_channel_snapshot *new_snapshot)
{
+ if (!old_snapshot || !new_snapshot) {
+ return;
+ }
+
if (strcmp(old_snapshot->linkedid, new_snapshot->linkedid)) {
check_retire_linkedid(old_snapshot);
}
More information about the asterisk-commits
mailing list