kpropd.c (PRS): Don't bother initializing server_addrs since
authorTheodore Tso <tytso@mit.edu>
Fri, 24 Mar 1995 22:36:17 +0000 (22:36 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 24 Mar 1995 22:36:17 +0000 (22:36 +0000)
      it's not used.

kprop.c (get_tickets): Remove the call to krb5_os_localaddr() since
      get_in_tkt_XXXX will default appropriately.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5235 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/ChangeLog
src/slave/kprop.c
src/slave/kpropd.c

index 9d7d068431561694ed3f738ede52ba009e4cb57d..fd1219d630f91e1b1f4e69146e49f8e1724dfb65 100644 (file)
@@ -1,3 +1,11 @@
+Fri Mar 24 14:49:41 1995    <tytso@rsx-11.mit.edu>
+
+       * kpropd.c (PRS): Don't bother initializing server_addrs since
+               it's not used.
+
+       * kprop.c (get_tickets): Remove the call to krb5_os_localaddr() since
+               get_in_tkt_XXXX will default appropriately.
+
 Thu Mar  2 12:26:08 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
index b699cc7fca6efc7c90684d948cc43659eac44579..5755a32bb564b5483a042e562a8688114c54e52a 100644 (file)
@@ -190,7 +190,6 @@ void get_tickets(context)
        char   buf[BUFSIZ];
        char   *cp;
        struct hostent *hp;
-       krb5_address **my_addresses;
        krb5_error_code retval;
        static char tkstring[] = "/tmp/kproptktXXXXXX";
 
@@ -271,16 +270,7 @@ void get_tickets(context)
                com_err(progname, retval, "While copying client principal");
                exit(1);
        }
-       /*
-        * Get my addresses
-        */
-       retval = krb5_os_localaddr(&my_addresses);
-       if (retval != 0) {
-               com_err(progname, retval,
-                       "when getting my address");
-               exit(1);
-       }
-       retval = krb5_get_in_tkt_with_keytab(context, 0, my_addresses, NULL,
+       retval = krb5_get_in_tkt_with_keytab(context, 0, 0, NULL,
                                             NULL, NULL, ccache, &creds, 0);
        if (retval) {
                com_err(progname, retval, "while getting initial ticket\n");
index de6ef5a4e7bfeddd48b2df55c794145d13668518..b28238affeb1fde21f60379d8ad5208173aee690 100644 (file)
@@ -68,7 +68,6 @@ int   standalone;
 krb5_principal server;         /* This is our server principal name */
 krb5_principal client;         /* This is who we're talking to */
 krb5_keyblock  *session_key;   /* Here is the session key */
-krb5_address   **server_addrs;
 krb5_pointer   kerb_keytab = 0; /* Use default */
 krb5_context kpropd_context;
 char   *realm = NULL;          /* Our realm */
@@ -420,11 +419,6 @@ void PRS(argv)
                        "While trying to parse %s for service name");
                exit(1);
        }
-       if (retval = krb5_os_localaddr(&server_addrs)) {
-               com_err(progname, retval,
-                       "While trying to get local server address");
-               exit(1);
-       }
        /*
         * Construct the name of the temporary file.
         */