loudmouth: fix nonce == empty comparison

Closes #9100
This commit is contained in:
Jürgen Buchmüller 2017-11-12 14:56:57 +01:00
parent f16a2d557e
commit 1f497f54a4
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- loudmouth/lm-sasl.c 2016-02-13 12:16:45.000000000 +0100
+++ loudmouth/lm-sasl.c 2017-11-12 14:55:20.995838985 +0100
@@ -529,7 +529,7 @@
}
nonce = g_hash_table_lookup (challenge, "nonce");
- if (nonce == NULL || nonce == '\0') {
+ if (nonce == NULL || *nonce == '\0') {
g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_SASL,
"%s: server didn't provide a nonce in the challenge",
G_STRFUNC);