Round #2 of scan-build warnings cleanup
This commit is contained in:
@@ -1357,6 +1357,7 @@ krb5_sname_to_principal(krb5_context context,
|
||||
if (ret) {
|
||||
_krb5_debug(context, 5, "Failed to get name canon rules: ret = %d",
|
||||
ret);
|
||||
free(remote_host);
|
||||
return ret;
|
||||
}
|
||||
if (rules[0].type == KRB5_NCRT_NSS &&
|
||||
@@ -1784,8 +1785,6 @@ apply_name_canon_rule(krb5_context context, krb5_name_canon_rule rules,
|
||||
if (ndots > rule->maxdots)
|
||||
return 0;
|
||||
|
||||
ret = 0;
|
||||
|
||||
if (rule->match_domain != NULL &&
|
||||
!is_domain_suffix(orig_hostname, rule->match_domain))
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user