From 5725353a3664d87b7e728f89b459d262f6ae52c7 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 4 Jan 2023 16:21:34 -0600 Subject: [PATCH] negoex: Fix incorrect ENOMEM check in storage_from_memory() --- lib/gssapi/spnego/negoex_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gssapi/spnego/negoex_util.c b/lib/gssapi/spnego/negoex_util.c index dffbfceab..e6c9a1392 100644 --- a/lib/gssapi/spnego/negoex_util.c +++ b/lib/gssapi/spnego/negoex_util.c @@ -354,7 +354,7 @@ storage_from_memory(OM_uint32 *minor, krb5_storage **sp) { *sp = krb5_storage_from_readonly_mem(data, length); - if (sp == NULL) { + if (*sp == NULL) { *minor = ENOMEM; return GSS_S_FAILURE; }