Fixed Android null terminated password fixup in xauth-eap
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user