diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-16 13:42:52 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-16 13:42:52 +0000 |
commit | 1ee633de6421a4fb9e64bbe955140c328c471848 (patch) | |
tree | 50d361b0971c2d8645ddcf64381a2e786281d2d9 /channels/chan_dahdi.c | |
parent | ca2b7b06fea64f2314672d97836e60aa173c0d47 (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: http://svn.digium.com/svn/asterisk/trunk@188705 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 2 |
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; |