From 84c73ef4979744659a192ed092354b532be7385a Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 5 Jun 2001 16:31:48 +0000 Subject: [PATCH] * server.c (log_badauth_display_status_1): Need value element of gss_buffer_desc for printf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13271 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/rpc/unit-test/ChangeLog | 3 +++ src/lib/rpc/unit-test/server.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/rpc/unit-test/ChangeLog b/src/lib/rpc/unit-test/ChangeLog index 702a083f2..a2f58f33f 100644 --- a/src/lib/rpc/unit-test/ChangeLog +++ b/src/lib/rpc/unit-test/ChangeLog @@ -1,5 +1,8 @@ 2001-06-05 Ezra Peisach + * server.c (log_badauth_display_status_1): Need value element of + gss_buffer_desc for printf. + * client.c (main): Missing arguments to printf fixed. 2001-04-24 Ezra Peisach diff --git a/src/lib/rpc/unit-test/server.c b/src/lib/rpc/unit-test/server.c index 32f5de349..cbf661979 100644 --- a/src/lib/rpc/unit-test/server.c +++ b/src/lib/rpc/unit-test/server.c @@ -168,10 +168,10 @@ static void rpc_test_badverf(gss_name_t client, gss_name_t server, (void) gss_display_name(&minor_stat, server, &server_name, &type); printf("rpc_test server: bad verifier from %s at %s:%d for %s\n", - client_name.value, + (char *) client_name.value, inet_ntoa(rqst->rq_xprt->xp_raddr.sin_addr), ntohs(rqst->rq_xprt->xp_raddr.sin_port), - server_name.value); + (char *) server_name.value); (void) gss_release_buffer(&minor_stat, &client_name); (void) gss_release_buffer(&minor_stat, &server_name); @@ -241,7 +241,7 @@ void log_badauth_display_status_1(OM_uint32 code, int type, int rec) GSS_C_MECH_CODE, 1); } else printf("GSS-API authentication error %s: " - "recursive failure!\n", msg); + "recursive failure!\n", (char *)msg.value); return; } -- 2.26.2