Skip to content

Commit

Permalink
krb5: _kdc_encode_reply leaks 'buf' if early exit
Browse files Browse the repository at this point in the history
Change-Id: I9e94535cd974ba463f813982325440a4ad8ba217
  • Loading branch information
jaltman committed Nov 19, 2016
1 parent 52a562a commit a3e95f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kdc/kerberos5.c
Expand Up @@ -840,6 +840,7 @@ _kdc_encode_reply(krb5_context context,
const char *msg = krb5_get_error_message(context, ret);
kdc_log(context, config, 0, "krb5_crypto_init failed: %s", msg);
krb5_free_error_message(context, msg);
free(buf);
return ret;
}

Expand Down

0 comments on commit a3e95f1

Please sign in to comment.