From: Mark Michelson Date: Thu, 31 Jan 2008 21:31:15 +0000 (+0000) Subject: Handle the case of a NULL state_interface when checking a realtime member. X-Git-Tag: 1.6.0-beta3~2^2~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=815658d35e8e603f709e9ddb0a196c5f1f32399e;p=thirdparty%2Fasterisk.git Handle the case of a NULL state_interface when checking a realtime member. Thanks to jmls for finding this issue. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101576 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 9e1d9066ea..c8690ff448 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1316,7 +1316,7 @@ static void rt_handle_member_record(struct call_queue *q, char *interface, const m->dead = 0; /* Do not delete this one. */ if (paused_str) m->paused = paused; - if (strcasecmp(state_interface, m->state_interface)) { + if (strcasecmp(ast_strlen_zero(state_interface) ? interface : state_interface, m->state_interface)) { remove_from_interfaces(m->state_interface); ast_copy_string(m->state_interface, state_interface, sizeof(m->state_interface)); add_to_interfaces(m->state_interface);