explicitly initialize pointer fields after memset (for coverity)
authorKen Raeburn <raeburn@mit.edu>
Mon, 2 Feb 2009 17:39:59 +0000 (17:39 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 2 Feb 2009 17:39:59 +0000 (17:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21861 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/init_sec_context.c

index e7742216eb1d817c0a298230589019410098e354..2175e9ecd0e264e9bb83be639f6b3f2cc2259303 100644 (file)
@@ -132,6 +132,7 @@ static krb5_error_code get_credentials(context, cred, server, now,
 
     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;