Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

Avoid assertion failure in error_message

r17942 added a call to get_thread_buffer in the first part of
error_message, prior to the call to com_err_initialize. This can
cause an assertion failure from k5_getspecific if error_message is
called on a system error before any other com_err functions are
called. Move the initialization call earlier to prevent this.

https://github.com/krb5/krb5/commit/6bdaa746fec1cf29adcbe5b8e65c4b8993770b84
Author: Greg Hudson <ghudson@mit.edu>
Commit: 6bdaa746fec1cf29adcbe5b8e65c4b8993770b84
Branch: master
src/util/et/error_message.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
From: tlyu@mit.edu
Subject: git commit

Avoid assertion failure in error_message

r17942 added a call to get_thread_buffer in the first part of
error_message, prior to the call to com_err_initialize. This can
cause an assertion failure from k5_getspecific if error_message is
called on a system error before any other com_err functions are
called. Move the initialization call earlier to prevent this.

(cherry picked from commit 6bdaa746fec1cf29adcbe5b8e65c4b8993770b84)

https://github.com/krb5/krb5/commit/b1ace054ae9699b049ad1f47f5971a22bd3137ad
Author: Greg Hudson <ghudson@mit.edu>
Committer: Tom Yu <tlyu@mit.edu>
Commit: b1ace054ae9699b049ad1f47f5971a22bd3137ad
Branch: krb5-1.12
src/util/et/error_message.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)