aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-12-04 12:33:56 +0100
committeriNPUTmice <daniel@gultsch.de>2014-12-04 12:33:56 +0100
commit9c9e22c0203a1e69a1bf88d0be99f24ef5728244 (patch)
tree2b2ecafc364937b0eff3ea3e3e4b260e8d0312a9 /src/main
parent873702946a948e61bce8c20fbd833688091cbb2a (diff)
fixed digest-md5
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/crypto/sasl/DigestMd5.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/crypto/sasl/DigestMd5.java b/src/main/java/eu/siacs/conversations/crypto/sasl/DigestMd5.java
index 55c38f40..8b16215b 100644
--- a/src/main/java/eu/siacs/conversations/crypto/sasl/DigestMd5.java
+++ b/src/main/java/eu/siacs/conversations/crypto/sasl/DigestMd5.java
@@ -79,6 +79,10 @@ public class DigestMd5 extends SaslMechanism {
case RESPONSE_SENT:
state = State.VALID_SERVER_RESPONSE;
break;
+ case VALID_SERVER_RESPONSE:
+ if (challenge==null) {
+ return null; //everything is fine
+ }
default:
throw new InvalidStateException(state);
}