projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ff7c33
)
Add "Logoff" before logging in (bug #119)
author
Mark Spencer
<markster@digium.com>
Mon, 18 Aug 2003 06:03:16 +0000
(06:03 +0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 18 Aug 2003 06:03:16 +0000
(06:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1362
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
manager.c
patch
|
blob
|
history
diff --git
a/manager.c
b/manager.c
index
1162c18
..
f441829
100755
(executable)
--- 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 ) {