kcm: kcmss_get_name_2 test correct output parameter

Do not assign to *sub if sub is NULL.

Change-Id: Iee9fa61e10ace69a64d986ca5d104974d2344e89
This commit is contained in:
Jeffrey Altman
2022-01-16 00:31:03 -05:00
parent f341fa7721
commit 558300cfd2

View File

@@ -55,7 +55,7 @@ kcmss_get_name_2(krb5_context context,
*name = CACHENAME(id); *name = CACHENAME(id);
if (col) if (col)
*col = NULL; *col = NULL;
if (name) if (sub)
*sub = CACHENAME(id); *sub = CACHENAME(id);
return 0; return 0;
} }