diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-03-28 02:46:05 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-03-28 02:46:05 -0400 |
commit | b5212739e7cf800b03f4e072f6446f6d7271176f (patch) | |
tree | 51e9cbd02b198ca5077470adbdac7079c3b73622 | |
parent | eaa16b361c032204f42148a302cf5623396ff39f (diff) | |
download | krb5-b5212739e7cf800b03f4e072f6446f6d7271176f.tar.gz krb5-b5212739e7cf800b03f4e072f6446f6d7271176f.tar.xz krb5-b5212739e7cf800b03f4e072f6446f6d7271176f.zip |
Init output parameter of krb5_decode_princ_entry
For easier static analysis, make sure that krb5_decode_princ_entry
always sets *entry_ptr to a valid entry or NULL.
-rw-r--r-- | src/plugins/kdb/db2/kdb_xdr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/kdb/db2/kdb_xdr.c b/src/plugins/kdb/db2/kdb_xdr.c index 5264963386..b587f8e97a 100644 --- a/src/plugins/kdb/db2/kdb_xdr.c +++ b/src/plugins/kdb/db2/kdb_xdr.c @@ -232,6 +232,8 @@ krb5_decode_princ_entry(krb5_context context, krb5_data *content, krb5_db_entry * entry; krb5_error_code retval; + *entry_ptr = NULL; + entry = k5alloc(sizeof(*entry), &retval); if (entry == NULL) return retval; |