Break out of the config processing loop for manager.conf once the correct user
authorRussell Bryant <russell@russellbryant.com>
Fri, 19 Jan 2007 16:30:00 +0000 (16:30 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 19 Jan 2007 16:30:00 +0000 (16:30 +0000)
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

main/manager.c

index 593fc73..f7276a6 100644 (file)
@@ -909,6 +909,7 @@ static int authenticate(struct mansession *s, const struct message *m)
                                        s->writetimeout = val;
                        }
                }
+               break;
        }
 
        ast_config_destroy(cfg);