From 558300cfd223e162dbb893e18319dbfdcc490d8f Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 16 Jan 2022 00:31:03 -0500 Subject: [PATCH] kcm: kcmss_get_name_2 test correct output parameter Do not assign to *sub if sub is NULL. Change-Id: Iee9fa61e10ace69a64d986ca5d104974d2344e89 --- kcm/glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcm/glue.c b/kcm/glue.c index 713af7f86..0895f48f0 100644 --- a/kcm/glue.c +++ b/kcm/glue.c @@ -55,7 +55,7 @@ kcmss_get_name_2(krb5_context context, *name = CACHENAME(id); if (col) *col = NULL; - if (name) + if (sub) *sub = CACHENAME(id); return 0; }