diff options
Diffstat (limited to 'src/astmanproxy.c')
-rw-r--r-- | src/astmanproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |