[svn-commits] russell: branch 1.4 r58023 - /branches/1.4/channels/chan_skinny.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Mar 6 11:01:20 MST 2007


Author: russell
Date: Tue Mar  6 12:01:20 2007
New Revision: 58023

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58023
Log:
Return an error of transmit_response is called without a session.
(issue #9002)

Modified:
    branches/1.4/channels/chan_skinny.c

Modified: branches/1.4/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_skinny.c?view=diff&rev=58023&r1=58022&r2=58023
==============================================================================
--- branches/1.4/channels/chan_skinny.c (original)
+++ branches/1.4/channels/chan_skinny.c Tue Mar  6 12:01:20 2007
@@ -1393,6 +1393,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 svn-commits mailing list