fix a little oopsie
authorRussell Bryant <russell@russellbryant.com>
Tue, 9 Aug 2005 19:31:54 +0000 (19:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 9 Aug 2005 19:31:54 +0000 (19:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6316 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 34b1de6..d3f09e6 100755 (executable)
@@ -8403,7 +8403,7 @@ static int set_config(char *config_file, int reload)
        /* Seed initial tos value */
        tosval = ast_variable_retrieve(cfg, "general", "tos");
        if (tosval) {
-               if (ast_str2tos(v->value, &tos))
+               if (ast_str2tos(tosval, &tos))
                        ast_log(LOG_WARNING, "Invalid tos value, should be 'lowdelay', 'throughput', 'reliability', 'mincost', or 'none'\n");
        }
        while(v) {