summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c
index 7e637ff4e..d14619645 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1049,6 +1049,10 @@ static int authenticate(struct mansession *s, const struct message *m)
ast_log(LOG_NOTICE, "%s tried to authenticate with nonexistent user '%s'\n", ast_inet_ntoa(s->sin.sin_addr), user);
return -1;
}
+ if (!readperm)
+ readperm = -1;
+ if (!writeperm)
+ writeperm = -1;
}
}