Fix a segfault that was reported by jcmoore in #asterisk-bugs on IRC.
authorJason Parker <jparker@digium.com>
Wed, 20 Sep 2006 19:46:18 +0000 (19:46 +0000)
committerJason Parker <jparker@digium.com>
Wed, 20 Sep 2006 19:46:18 +0000 (19:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index ff00e44..9828550 100644 (file)
@@ -1063,7 +1063,7 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as
 
        while ((interface = ast_category_browse(member_config, interface))) {
                rt_handle_member_record(q, interface,
-                       ast_variable_retrieve(member_config, interface, "membername"),
+                       S_OR(ast_variable_retrieve(member_config, interface, "membername"), interface),
                        ast_variable_retrieve(member_config, interface, "penalty"));
        }