aboutsummaryrefslogtreecommitdiffstats
path: root/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'manager.c')
-rwxr-xr-xmanager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/manager.c b/manager.c
index 1162c18fc..f441829c5 100755
--- a/manager.c
+++ b/manager.c
@@ -571,7 +571,10 @@ static int process_message(struct mansession *s, struct message *m)
ast_log(LOG_EVENT, "Manager '%s' logged on from %s\n", s->username, inet_ntoa(s->sin.sin_addr));
astman_send_ack(s, "Authentication accepted");
}
- } else
+ } else if (!strcasecmp(action, "Logoff")) {
+ astman_send_ack(s, "See ya");
+ return -1;
+ } else
astman_send_error(s, "Authentication Required");
} else {
while( tmp ) {