diff --git a/source/org/jivesoftware/smack/sasl/SASLAnonymous.java b/source/org/jivesoftware/smack/sasl/SASLAnonymous.java index fa478cd4a..7a03d9c0e 100644 --- a/source/org/jivesoftware/smack/sasl/SASLAnonymous.java +++ b/source/org/jivesoftware/smack/sasl/SASLAnonymous.java @@ -45,7 +45,8 @@ public class SASLAnonymous extends SASLMechanism { } protected String getChallengeResponse(byte[] bytes) { - // Return null since this mechanism will never get a challenge from the server - return null; + // Some servers may send a challenge to gather more information such as + // email address. Return any string value. + return "anything"; } }