From 910ebdcd3dd82386717a201c13c834f3a63eed7f Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Sat, 8 Feb 2025 12:30:13 -0600 Subject: [PATCH] digest-auth: Handle NULL nonce `contains` only handles a missing nonce, `lookup` handles both missing and empty. Conflict: Modify file path adaptation: libsoup/auth/soup-auth-digest.c->libsoup/soup-auth-digest.c Reference: https://gitlab.gnome.org/GNOME/libsoup/-/commit/910ebdcd3dd82386717a201c13c834f3a63eed7f --- libsoup/soup-auth-digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c index d69a4013..dc4dbfc5 100644 --- a/libsoup/soup-auth-digest.c +++ b/libsoup/soup-auth-digest.c @@ -162,7 +162,7 @@ soup_auth_digest_update (SoupAuth *auth, SoupMessage *msg, guint qop_options; gboolean ok = TRUE; - if (!soup_auth_get_realm (auth) || !g_hash_table_contains (auth_params, "nonce")) + if (!soup_auth_get_realm (auth) || !g_hash_table_lookup (auth_params, "nonce")) return FALSE; g_free (priv->domain); -- GitLab