diff --git a/lib/krb5/krcache.c b/lib/krb5/krcache.c index 973294eb5..9e9922161 100644 --- a/lib/krb5/krcache.c +++ b/lib/krb5/krcache.c @@ -367,6 +367,9 @@ parse_residual(krb5_context context, *pcollection_name = NULL; *psubsidiary_name = NULL; + if (residual == NULL) + residual = ""; + /* Parse out the anchor name. Use the legacy anchor if not present. */ sep = strchr(residual, ':'); if (sep == NULL) {