diff options
| author | Greg Hudson <ghudson@mit.edu> | 2013-05-22 01:57:36 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2013-05-22 01:57:36 -0400 |
| commit | 48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2 (patch) | |
| tree | 20099b64ab15b4747e17f6443b1e3843dd2d25ca /src/appl | |
| parent | 98aa233e18245981b491affe5fa70623cb83b705 (diff) | |
| download | krb5-48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2.tar.gz krb5-48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2.tar.xz krb5-48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2.zip | |
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.
Diffstat (limited to 'src/appl')
| -rw-r--r-- | src/appl/user_user/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, "???", |
