From 2d95565f53ebb71044f3ef2dc38b1e6053fca4b6 Mon Sep 17 00:00:00 2001
From: Mark Michelson <mmichelson@digium.com>
Date: Mon, 24 Sep 2007 17:00:57 +0000
Subject: [PATCH] interface_exists_global was never returning 1. Most likely an
 error from my merge on Friday.

(closes issue #10817, reported and patched by snar, patch simplified by me)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@83656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_queue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8ff2c9909e..9470b44bdf 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -884,6 +884,7 @@ static int interface_exists_global(const char *interface)
 			ao2_ref(mem, -1);
 			ao2_unlock(q);
 			queue_unref(q);
+			ret = 1;
 			break;
 		}
 		ao2_unlock(q);
-- 
GitLab