Merged revisions 82346 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 13 Sep 2007 20:17:41 +0000 (20:17 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 13 Sep 2007 20:17:41 +0000 (20:17 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82346 | mmichelson | 2007-09-13 15:16:37 -0500 (Thu, 13 Sep 2007) | 4 lines

Preemptively fixing a possible segfault. It is possible that queuename is NULL
(meaning pause ALL queues), so use q->name instead.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82347 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 2b3ba9a..940d652 100644 (file)
@@ -3239,7 +3239,7 @@ static int set_member_paused(const char *queuename, const char *interface, const
                                        dump_queue_members(q);
 
                                if(mem->realtime)
-                                       update_realtime_member_field(mem, queuename, "paused", paused ? "1" : "0");
+                                       update_realtime_member_field(mem, q->name, "paused", paused ? "1" : "0");
 
                                ast_queue_log(q->name, "NONE", mem->membername, (paused ? "PAUSE" : "UNPAUSE"), "%s", S_OR(reason, ""));