[asterisk-commits] russell: branch russell/messaging r321521 - /team/russell/messaging/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 31 18:22:45 CDT 2011


Author: russell
Date: Tue May 31 18:22:39 2011
New Revision: 321521

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321521
Log:
Ensure arguments passed to msg_send callbacks are non-NULL.

Modified:
    team/russell/messaging/main/message.c

Modified: team/russell/messaging/main/message.c
URL: http://svnview.digium.com/svn/asterisk/team/russell/messaging/main/message.c?view=diff&rev=321521&r1=321520&r2=321521
==============================================================================
--- team/russell/messaging/main/message.c (original)
+++ team/russell/messaging/main/message.c Tue May 31 18:22:39 2011
@@ -1001,7 +1001,8 @@
 	ao2_lock(msg);
 	ast_rwlock_rdlock(&tech_holder->tech_lock);
 	if (tech_holder->tech) {
-		res = tech_holder->tech->msg_send(msg, args.to, args.from);
+		res = tech_holder->tech->msg_send(msg, S_OR(args.to, ""),
+							S_OR(args.from, ""));
 	}
 	ast_rwlock_unlock(&tech_holder->tech_lock);
 	ao2_unlock(msg);




More information about the asterisk-commits mailing list