svn rev #21861: trunk/src/lib/gssapi/krb5/
raeburn@MIT.EDU
raeburn at MIT.EDU
Mon Feb 2 12:40:01 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21861
Commit By: raeburn
Log Message:
explicitly initialize pointer fields after memset (for coverity)
Changed Files:
U trunk/src/lib/gssapi/krb5/init_sec_context.c
Modified: trunk/src/lib/gssapi/krb5/init_sec_context.c
===================================================================
--- trunk/src/lib/gssapi/krb5/init_sec_context.c 2009-02-02 16:54:38 UTC (rev 21860)
+++ trunk/src/lib/gssapi/krb5/init_sec_context.c 2009-02-02 17:39:59 UTC (rev 21861)
@@ -132,6 +132,7 @@
k5_mutex_assert_locked(&cred->lock);
memset((char *) &in_creds, 0, sizeof(krb5_creds));
+ in_creds.client = in_creds.server = NULL;
if ((code = krb5_copy_principal(context, cred->princ, &in_creds.client)))
goto cleanup;
More information about the cvs-krb5
mailing list