From: Greg Hudson Date: Wed, 22 May 2013 05:57:36 +0000 (-0400) Subject: Fix krb5_rd_req usage in user-to-user sample app X-Git-Tag: krb5-1.12-alpha1~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2;p=thirdparty%2Fkrb5.git Fix krb5_rd_req usage in user-to-user sample app Pass the server principal to krb5_rd_req so it can do proper transited checking. --- diff --git a/src/appl/user_user/client.c b/src/appl/user_user/client.c index ed25164dcb..3d5fc51f12 100644 --- a/src/appl/user_user/client.c +++ b/src/appl/user_user/client.c @@ -240,8 +240,8 @@ int main (int argc, char *argv[]) #if 1 /* read the ap_req to get the session key */ - retval = krb5_rd_req(context, &auth_context, &reply, - NULL, NULL, NULL, &ticket); + retval = krb5_rd_req(context, &auth_context, &reply, creds.client, NULL, + NULL, &ticket); free(reply.data); #else retval = krb5_recvauth(context, &auth_context, (krb5_pointer)&s, "???",