Fixed authentication method selection for main mode PSK authentication
authorMartin Willi <martin@revosec.ch>
Mon, 12 Dec 2011 10:28:24 +0000 (11:28 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:17 +0000 (17:31 +0100)
src/libcharon/sa/tasks/main_mode.c

index cea0631..e674381 100755 (executable)
@@ -308,7 +308,7 @@ static auth_method_t get_auth_method(private_main_mode_t *this,
                        return AUTH_XAUTH_RESP_RSA;
                }
        }
-       if (i1 == AUTH_CLASS_PSK && r2 == AUTH_CLASS_PSK)
+       if (i1 == AUTH_CLASS_PSK && r1 == AUTH_CLASS_PSK)
        {
                if (i2 == AUTH_CLASS_ANY && r2 == AUTH_CLASS_ANY)
                {