]> git.ipfire.org Git - thirdparty/krb5.git/commit
Address some optimized-out memset() calls 886/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 30 Dec 2018 21:40:28 +0000 (16:40 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 3 Jan 2019 22:03:28 +0000 (17:03 -0500)
commit1057b0befec1f1c0e9d4da5521a58496e2dc0997
treef146ba444304f96b346d34e55b343b1057dfedad
parentecb03a4c31cf8a6b1bca3459ae56d4122398c18e
Address some optimized-out memset() calls

Ilja Van Sprundel reported a list of memset() calls which gcc
optimizes out.  In krb_auth_su.c, use zap() to clear the password, and
remove two memset() calls when there is no password to clear.  In
iakerb.c, remove an unnecessary memset() before setting the only two
fields of the IAKERB header structure.  In svr_principal.c, use
krb5_free_key_keyblock_contents() instead of hand-freeing key data.
In asn1_k_encode.c, remove an unnecessary memset() of the kdc_req_hack
shell before returning.
src/clients/ksu/krb_auth_su.c
src/lib/gssapi/krb5/iakerb.c
src/lib/kadm5/srv/svr_principal.c
src/lib/krb5/asn.1/asn1_k_encode.c