]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fixed Android null terminated password fixup in xauth-eap
authorMartin Willi <martin@revosec.ch>
Thu, 26 Apr 2012 12:35:27 +0000 (14:35 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 26 Apr 2012 12:35:27 +0000 (14:35 +0200)
src/libcharon/plugins/xauth_eap/xauth_eap.c

index 7ccb8020513bef534cee13a35c526b2c3bbb3029..8d7bcc0c0a71c4fdff209ff06b44b92bdea1d4de 100644 (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,