From: Russell Bryant Date: Fri, 19 Jan 2007 16:30:00 +0000 (+0000) Subject: Break out of the config processing loop for manager.conf once the correct user X-Git-Tag: 1.6.0-beta1~3^2~3421 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=606ee0dab40a8cd61cc1c5d2f26e0de0c8d92418;p=thirdparty%2Fasterisk.git Break out of the config processing loop for manager.conf once the correct user has been found so that 'cat' is non-NULL. This way, users.conf is only checked when necessary. (issue #8852, akohlsmith, committed patch a bit different) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51296 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/manager.c b/main/manager.c index 593fc736cb..f7276a6032 100644 --- a/main/manager.c +++ b/main/manager.c @@ -909,6 +909,7 @@ static int authenticate(struct mansession *s, const struct message *m) s->writetimeout = val; } } + break; } ast_config_destroy(cfg);