Call rx_InitHost once during daemon startup
[openafs.git] / src / kauth / kaserver.c
index da824bc..d28c736 100644 (file)
@@ -410,10 +410,15 @@ main(int argc, char *argv[])
         }
         if (ccode == 1) {
             host = SHostAddrs[0];
-           rx_InitHost(host, htons(AFSCONF_KAUTHPORT));
        }
     }
 
+    code = rx_InitHost(host, htons(AFSCONF_KAUTHPORT));
+    if (code) {
+       afs_com_err(whoami, code, "rx init failed");
+       exit(2);
+    }
+
     /* Disable jumbograms */
     rx_SetNoJumbo();