]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix krb5_rd_req usage in user-to-user sample app
authorGreg Hudson <ghudson@mit.edu>
Wed, 22 May 2013 05:57:36 +0000 (01:57 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 22 May 2013 05:57:36 +0000 (01:57 -0400)
Pass the server principal to krb5_rd_req so it can do proper transited
checking.

src/appl/user_user/client.c

index ed25164dcbde6d210230aec00188657c8f8b2c0a..3d5fc51f120e12b07c13a73235e9cbfa32aaaa65 100644 (file)
@@ -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, "???",