Round #3 of scan-build warnings cleanup
This commit is contained in:
@@ -798,6 +798,9 @@ ticket_lifetime(krb5_context context, krb5_ccache cache, krb5_principal client,
|
||||
|
||||
memset(&in_cred, 0, sizeof(in_cred));
|
||||
|
||||
if (renew != NULL)
|
||||
*renew = 0;
|
||||
|
||||
ret = krb5_cc_get_principal(context, cache, &in_cred.client);
|
||||
if (ret) {
|
||||
krb5_warn(context, ret, "krb5_cc_get_principal");
|
||||
|
@@ -503,8 +503,10 @@ list_caches(krb5_context context, struct klist_options *opt)
|
||||
def_name = strdup(cdef_name);
|
||||
|
||||
ret = krb5_cccol_cursor_new(context, &cursor);
|
||||
if (ret == KRB5_CC_NOSUPP)
|
||||
if (ret == KRB5_CC_NOSUPP) {
|
||||
free(def_name);
|
||||
return 0;
|
||||
}
|
||||
else if (ret)
|
||||
krb5_err (context, 1, ret, "krb5_cc_cache_get_first");
|
||||
|
||||
|
Reference in New Issue
Block a user