From 4cdb94dbc4f7cfc13c9f3e07929adcd96b3df1c8 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 4 May 2012 17:13:32 -0500 Subject: [PATCH] ubik: Initialize ubik_callPortal earlier As of 7caf4143, we call ubeacon_InitServerList* before ubik_callPortal is set, causing Rx connections to be created to port 0, causing various problems with communicating with other sites. Initialize ubik_callPortal to the correct value before calling any such functions, so we create connections to the right port. Change-Id: I37dbf575bcdec10463c7b6006738678096a92573 Reviewed-on: http://gerrit.openafs.org/7349 Reviewed-by: Jeffrey Altman Reviewed-by: Marc Dionne Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/ubik/ubik.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ubik/ubik.c b/src/ubik/ubik.c index a0c7afd4ea..1956bac780 100644 --- a/src/ubik/ubik.c +++ b/src/ubik/ubik.c @@ -447,6 +447,8 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort, if (code < 0) return code; + ubik_callPortal = myPort; + udisk_Init(ubik_nBuffers); ulock_Init(); @@ -463,7 +465,6 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort, if (code) return code; - ubik_callPortal = myPort; /* try to get an additional security object */ if (buildSecClassesProc == NULL) { numClasses = 3;