Fixes problem where manager users loaded from users.conf would be
authorBrett Bryant <bbryant@digium.com>
Fri, 18 Jul 2008 22:19:56 +0000 (22:19 +0000)
committerBrett Bryant <bbryant@digium.com>
Fri, 18 Jul 2008 22:19:56 +0000 (22:19 +0000)
removed early (before the routine to load the configuration was
finished) because a variable wasn't initialized.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132242 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index f7e3daf..6b7c682 100644 (file)
@@ -4115,6 +4115,7 @@ static int __init_manager(int reload)
                                        /* Insert into list */
                                        AST_LIST_INSERT_TAIL(&users, user, list);
                                        user->ha = NULL;
+                                       user->keep = 1;
                                        user->readperm = -1;
                                        user->writeperm = -1;
                                        /* Default displayconnect from [general] */