]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Return -1 if chan_local doesn't support an option
authorTerry Wilson <twilson@digium.com>
Fri, 10 Sep 2010 22:54:23 +0000 (22:54 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 10 Sep 2010 22:54:23 +0000 (22:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@286222 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index f49eb0b2f2c5bec07ab7f513eb7ecc9b6852829a..5f17e1814419d0c5e1a7debd0d2370bc13961e07 100644 (file)
@@ -134,7 +134,7 @@ static int local_setoption(struct ast_channel *chan, int option, void * data, in
        ast_chan_write_info_t *write_info;
 
        if (option != AST_OPTION_CHANNEL_WRITE) {
-               return 0;
+               return -1;
        }
 
        write_info = data;