From: Steve Dickson Date: Tue, 19 Apr 2011 16:31:30 +0000 (-0400) Subject: rpc.svcgssd: Segmentation fault on error X-Git-Tag: nfs-utils-1-2-4-rc8 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2e4a7e9b50a641dc8640a5dd911ee4a2f0b2c073;p=nfs-utils.git 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 --- 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)