[asterisk-commits] file: trunk r188705 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 16 08:43:18 CDT 2009


Author: file
Date: Thu Apr 16 08:42:52 2009
New Revision: 188705

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=188705
Log:
Fix a bug with the dahdi_setoption callback in chan_dahdi.

This function incorrectly reported success even if the option was
unsupported. This was exposed by the options to change the underlying
channel format. The function now returns a failure if the option
is unsupported.

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=188705&r1=188704&r2=188705
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Apr 16 08:42:52 2009
@@ -5035,6 +5035,8 @@
 			dahdi_disable_ec(p);
 		}
 		break;
+	default:
+		return -1;
 	}
 	errno = 0;
 




More information about the asterisk-commits mailing list