Skip to content

Commit

Permalink
Fix leak in FAST OTP client processing
Browse files Browse the repository at this point in the history
In set_pa_data(), after encoding the OTP request and stealing the
pointer from the resulting krb5_data object, free the krb5_data
container.

(cherry picked from commit 7029efc)

ticket: 8443
version_fixed: 1.13.7
  • Loading branch information
greghudson authored and tlyu committed Sep 2, 2016
1 parent ac12d2c commit 165c99c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/krb5/krb/preauth_otp.c
Expand Up @@ -830,6 +830,7 @@ set_pa_data(const krb5_pa_otp_req *req, krb5_pa_data ***pa_data_out)
goto error;
out[0]->contents = (krb5_octet *)tmp->data;
out[0]->length = tmp->length;
free(tmp);

*pa_data_out = out;
return 0;
Expand Down

0 comments on commit 165c99c

Please sign in to comment.