From d551aef121846f5a12751dd0abf71ad7cb32a7e0 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Wed, 25 Jan 2012 17:20:00 -0800 Subject: [PATCH] Bug 721129 - Incorrect BigInteger comparison in JPakeCrypto. r=dchan --- mobile/android/base/sync/jpake/JPakeCrypto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/base/sync/jpake/JPakeCrypto.java b/mobile/android/base/sync/jpake/JPakeCrypto.java index 025bfd21bbb..0c13af7c541 100644 --- a/mobile/android/base/sync/jpake/JPakeCrypto.java +++ b/mobile/android/base/sync/jpake/JPakeCrypto.java @@ -138,7 +138,7 @@ public class JPakeCrypto { Log.d(LOG_TAG, "round2 started."); - if (jp.gx4 == BigInteger.ONE) { + if (BigInteger.ONE.compareTo(jp.gx4) == 0) { throw new Gx4IsOneException(); }