From 2e4a7e9b50a641dc8640a5dd911ee4a2f0b2c073 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 19 Apr 2011 12:31:30 -0400 Subject: [PATCH] rpc.svcgssd: Segmentation fault on error Commit 544ed73d introduced a regression that caused rpc.svcgssd to seg fault on "Wrong principal in request" errors in gss_accept_sec_context() Signed-off-by: Steve Dickson --- utils/gssd/gss_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/gssd/gss_util.c b/utils/gssd/gss_util.c index ca27d61..0e327b0 100644 --- a/utils/gssd/gss_util.c +++ b/utils/gssd/gss_util.c @@ -252,7 +252,8 @@ display_status_2(char *m, u_int32_t major, u_int32_t minor, const gss_OID mech) if (major == GSS_S_CREDENTIALS_EXPIRED) msg_verbosity = 1; - printerr(msg_verbosity, "ERROR: GSS-API: error in %s(): %s (%s) - %s(%s)\n", + + printerr(msg_verbosity, "ERROR: GSS-API: error in %s(): %s (%s) - %s\n", m, gss_display_error(major), maj, min); if (maj_gss_buf.length != 0) -- 2.39.5