projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b87fac9
)
explicitly initialize pointer fields after memset (for coverity)
author
Ken Raeburn
<raeburn@mit.edu>
Mon, 2 Feb 2009 17:39:59 +0000
(17:39 +0000)
committer
Ken 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
patch
|
blob
|
history
diff --git
a/src/lib/gssapi/krb5/init_sec_context.c
b/src/lib/gssapi/krb5/init_sec_context.c
index e7742216eb1d817c0a298230589019410098e354..2175e9ecd0e264e9bb83be639f6b3f2cc2259303 100644
(file)
--- a/
src/lib/gssapi/krb5/init_sec_context.c
+++ b/
src/lib/gssapi/krb5/init_sec_context.c
@@
-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;