From 9cd79268fedae4e83482dc9317fbc03ea52f81b2 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 14 Feb 2011 00:13:17 +0000 Subject: [PATCH] In kg_acceptor_princ, make Coverity happy by using a different test to determine if we should set (*princ_out)->type. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24638 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/naming_exts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gssapi/krb5/naming_exts.c b/src/lib/gssapi/krb5/naming_exts.c index d1940123f..986717016 100644 --- a/src/lib/gssapi/krb5/naming_exts.c +++ b/src/lib/gssapi/krb5/naming_exts.c @@ -186,7 +186,7 @@ kg_acceptor_princ(krb5_context context, krb5_gss_name_t name, code = krb5_build_principal(context, princ_out, 0, "", name->service, host, (char *)NULL); - if (code == 0) + if (*princ_out != NULL) (*princ_out)->type = KRB5_NT_SRV_HST; free(tmp); return code; -- 2.26.2