svn rev #24638: trunk/src/lib/gssapi/krb5/
ghudson@MIT.EDU
ghudson at MIT.EDU
Sun Feb 13 19:13:17 EST 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24638
Commit By: ghudson
Log Message:
In kg_acceptor_princ, make Coverity happy by using a different test to
determine if we should set (*princ_out)->type.
Changed Files:
U trunk/src/lib/gssapi/krb5/naming_exts.c
Modified: trunk/src/lib/gssapi/krb5/naming_exts.c
===================================================================
--- trunk/src/lib/gssapi/krb5/naming_exts.c 2011-02-13 22:36:13 UTC (rev 24637)
+++ trunk/src/lib/gssapi/krb5/naming_exts.c 2011-02-14 00:13:17 UTC (rev 24638)
@@ -186,7 +186,7 @@
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;
More information about the cvs-krb5
mailing list