[asterisk-commits] russell: trunk r58025 - in /trunk: ./ channels/chan_skinny.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 6 11:02:36 MST 2007


Author: russell
Date: Tue Mar  6 12:02:35 2007
New Revision: 58025

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58025
Log:
Merged revisions 58023 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58023 | russell | 2007-03-06 12:01:20 -0600 (Tue, 06 Mar 2007) | 3 lines

Return an error of transmit_response is called without a session.
(issue #9002)

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_skinny.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=58025&r1=58024&r2=58025
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Tue Mar  6 12:02:35 2007
@@ -1420,6 +1420,12 @@
 static int transmit_response(struct skinnysession *s, struct skinny_req *req)
 {
 	int res = 0;
+
+	if (!s) {
+		ast_log(LOG_WARNING, "Asked to transmit to a non-existant session!\n");
+		return -1;
+	}
+
 	ast_mutex_lock(&s->lock);
 
 	if (skinnydebug)



More information about the asterisk-commits mailing list