diff options
author | Martin Willi <martin@revosec.ch> | 2012-04-26 14:35:27 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-04-26 14:35:27 +0200 |
commit | 8c35f5d460baf0ee7f25669620ee234a0176681f (patch) | |
tree | 6d7e20109b49eec5c05772f08abb124a21886a8a /src | |
parent | 4837d2a9812e5a6250faf0993c34057916c3cd74 (diff) | |
download | strongswan-8c35f5d460baf0ee7f25669620ee234a0176681f.tar.bz2 strongswan-8c35f5d460baf0ee7f25669620ee234a0176681f.tar.xz |
Fixed Android null terminated password fixup in xauth-eap
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/xauth_eap/xauth_eap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/xauth_eap/xauth_eap.c b/src/libcharon/plugins/xauth_eap/xauth_eap.c index 7ccb80205..8d7bcc0c0 100644 --- a/src/libcharon/plugins/xauth_eap/xauth_eap.c +++ b/src/libcharon/plugins/xauth_eap/xauth_eap.c @@ -217,9 +217,9 @@ METHOD(xauth_method_t, process, status_t, this->peer->destroy(this->peer); this->peer = id; } - if (pass.len && pass.ptr[pass.len - 1] == 0) + if (this->pass.len && this->pass.ptr[this->pass.len - 1] == 0) { /* fix null-terminated passwords (Android etc.) */ - pass.len -= 1; + this->pass.len -= 1; } name = lib->settings->get_str(lib->settings, |