coverity 1164091

This commit is contained in:
Nicolas Williams
2015-04-18 23:18:50 -05:00
parent 528b6d093c
commit e7b5efb103

View File

@@ -1366,7 +1366,7 @@ krb5_sname_to_principal(krb5_context context,
realm, sname, remote_host,
(char *)0);
if (type == KRB5_NT_SRV_HST) {
if (ret == 0 && type == KRB5_NT_SRV_HST) {
/*
* Hostname canonicalization is done elsewhere (in
* krb5_get_credentials() and krb5_kt_get_entry()).