From 2e59afd9c5cdfcc8fa3f7237668568e9c85a15a0 Mon Sep 17 00:00:00 2001 From: David Troy Date: Fri, 7 Apr 2006 17:27:01 +0000 Subject: git-svn-id: http://svncommunity.digium.com/svn/astmanproxy/branches/1.20pre@92 f02b47b9-160a-0410-81a6-dc3441afb0ec --- src/astmanproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/astmanproxy.c') diff --git a/src/astmanproxy.c b/src/astmanproxy.c index 0cc3a6a..9eb5ac6 100644 --- a/src/astmanproxy.c +++ b/src/astmanproxy.c @@ -266,7 +266,7 @@ void *session_do(struct mansession *s) if (res > 0) { /* Check for anything that requires proxy-side processing */ - if (pc.key && !s->authenticated) { + if (pc.key[0] != '\0' && !s->authenticated) { key = astman_get_header(&m, "ProxyKey"); if (!strcmp(key, pc.key) ) { pthread_mutex_lock(&s->lock); -- cgit