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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user