summaryrefslogtreecommitdiffstats
path: root/push.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-03-12 03:05:34 +0000
committerJames Yonan <james@openvpn.net>2010-03-12 03:05:34 +0000
commit8c7c6be4893ca15061e15ca1e5990c052d77a016 (patch)
tree08a389bea7c1898dc3d6db1bf5f5f621d09f3759 /push.c
parentfdda3135a8a95e7540740fe7a71481dc7a40d610 (diff)
downloadopenvpn-8c7c6be4893ca15061e15ca1e5990c052d77a016.tar.gz
openvpn-8c7c6be4893ca15061e15ca1e5990c052d77a016.tar.xz
openvpn-8c7c6be4893ca15061e15ca1e5990c052d77a016.zip
Modified ">PASSWORD:Verification Failed" management interface
notification to include a client reason string: >PASSWORD:Verification Failed: 'AUTH_TYPE' ['REASON_STRING'] git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5468 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'push.c')
-rw-r--r--push.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/push.c b/push.c
index 70bb9a3..149d25a 100644
--- a/push.c
+++ b/push.c
@@ -63,11 +63,11 @@ receive_auth_failed (struct context *c, const struct buffer *buffer)
#ifdef ENABLE_MANAGEMENT
if (management)
{
- const char *reason = UP_TYPE_AUTH;
+ const char *reason = NULL;
struct buffer buf = *buffer;
if (buf_string_compare_advance (&buf, "AUTH_FAILED,") && BLEN (&buf))
reason = BSTR (&buf);
- management_auth_failure (management, reason);
+ management_auth_failure (management, UP_TYPE_AUTH, reason);
}
#endif
}