[asterisk-commits] trunk r9248 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Feb 8 18:52:11 MST 2006


Author: russell
Date: Wed Feb  8 19:52:09 2006
New Revision: 9248

URL: http://svn.digium.com/view/asterisk?rev=9248&view=rev
Log:
clarify return value (issue #6434)

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=9248&r1=9247&r2=9248&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Wed Feb  8 19:52:09 2006
@@ -7032,7 +7032,7 @@
 				if (p.sigtype != (signalling & 0x3ffff)) {
 					ast_log(LOG_ERROR, "Signalling requested on channel %d is %s but line is in %s signalling\n", channel, sig2str(signalling), sig2str(p.sigtype));
 					destroy_zt_pvt(&tmp);
-					return tmp;
+					return NULL;
 				}
 				tmp->law = p.curlaw;
 				tmp->span = p.spanno;



More information about the asterisk-commits mailing list