From 9c9e22c0203a1e69a1bf88d0be99f24ef5728244 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 4 Dec 2014 12:33:56 +0100 Subject: [PATCH] fixed digest-md5 --- .../java/eu/siacs/conversations/crypto/sasl/DigestMd5.java | 4 ++++ 1 file changed, 4 insertions(+) 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 55c38f409..8b16215bd 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); }