summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2009-04-16 13:42:52 +0000
committerJoshua Colp <jcolp@digium.com>2009-04-16 13:42:52 +0000
commitac48378d28967bec1b152abf9ddbc870b4081abc (patch)
tree50d361b0971c2d8645ddcf64381a2e786281d2d9 /channels/chan_dahdi.c
parentb2e77d5f5d45b7650acbbd763266db58702ded62 (diff)
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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index d5063b661..1bcd6676b 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -5035,6 +5035,8 @@ static int dahdi_setoption(struct ast_channel *chan, int option, void *data, int
dahdi_disable_ec(p);
}
break;
+ default:
+ return -1;
}
errno = 0;