loudmouth/lm-sasl.c
changeset 721 c5d2f7bc8a18
parent 690 7ccf2113ec5f
--- a/loudmouth/lm-sasl.c	Mon May 08 10:49:15 2017 +0200
+++ b/loudmouth/lm-sasl.c	Sun May 14 12:18:32 2017 +0300
@@ -529,7 +529,7 @@
     }
 
     nonce = g_hash_table_lookup (challenge, "nonce");
-    if (nonce == NULL || nonce == '\0') {
+    if (nonce == NULL || nonce[0] == '\0') {
         g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_SASL,
                "%s: server didn't provide a nonce in the challenge",
                G_STRFUNC);