File authzid.patch of Package gsasl

From: Jan Engelhardt <ej@inai.de>
Date: 2026-01-26 19:07:49.531781521 +0100

There is a compile error that gsasl itself did not catch (failure to
test-build with own dogfood, aka. -Werror).

[   53s] openid20.c: In function 'openid20':
[   53s] openid20.c:259:12: error: use of NULL where non-null expected [CWE-476] [-Werror=analyzer-null-argument]
[   53s]   259 |   else if (strcmp (authzid, gsasl_property_fast (server, GSASL_AUTHZID)) != 0)

---
 tests/openid20.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: gsasl-2.2.2/tests/openid20.c
===================================================================
--- gsasl-2.2.2.orig/tests/openid20.c
+++ gsasl-2.2.2/tests/openid20.c
@@ -256,7 +256,7 @@ openid20 (Gsasl *c, Gsasl *s)
 	  gsasl_property_fast (server, GSASL_AUTHZID));
   else if (authzid && !gsasl_property_fast (server, GSASL_AUTHZID))
     fail ("did not get authzid? %s\n", authzid);
-  else if (strcmp (authzid, gsasl_property_fast (server, GSASL_AUTHZID)) != 0)
+  else if (authzid && strcmp (authzid, gsasl_property_fast (server, GSASL_AUTHZID)) != 0)
     fail ("authzid comparison failed: got %s expected %s\n",
 	  gsasl_property_fast (server, GSASL_AUTHZID), authzid);
 
openSUSE Build Service is sponsored by