Fixed Android null terminated password fixup in xauth-eap

This commit is contained in:
Martin Willi
2012-04-26 14:35:27 +02:00
parent 4837d2a981
commit 8c35f5d460
+2 -2
View File
@@ -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,