diff options
Diffstat (limited to 'src/lib/krb5/krb/rd_safe.c')
-rw-r--r-- | src/lib/krb5/krb/rd_safe.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index 15dc6dc..2fa8ec4 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -47,7 +47,11 @@ returns system errors, integrity errors */ static krb5_error_code -krb5_rd_safe_basic(krb5_context context, const krb5_data *inbuf, const krb5_keyblock *keyblock, const krb5_address *recv_addr, const krb5_address *sender_addr, krb5_replay_data *replaydata, krb5_data *outbuf) +krb5_rd_safe_basic(krb5_context context, const krb5_data *inbuf, + const krb5_keyblock *keyblock, + const krb5_address *recv_addr, + const krb5_address *sender_addr, + krb5_replay_data *replaydata, krb5_data *outbuf) { krb5_error_code retval; krb5_safe * message; @@ -154,7 +158,9 @@ cleanup: } krb5_error_code KRB5_CALLCONV -krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_data *outbuf, krb5_replay_data *outdata) +krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, + const krb5_data *inbuf, krb5_data *outbuf, + krb5_replay_data *outdata) { krb5_error_code retval; krb5_keyblock * keyblock; @@ -211,6 +217,7 @@ krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, const krb5_da } } + memset(&replaydata, 0, sizeof(replaydata)); if ((retval = krb5_rd_safe_basic(context, inbuf, keyblock, plocal_fulladdr, premote_fulladdr, &replaydata, outbuf))) { |