From: Andrew Deason Date: Fri, 4 May 2012 22:13:32 +0000 (-0500) Subject: ubik: Initialize ubik_callPortal earlier X-Git-Tag: upstream/1.8.0_pre1^2~2445 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4cdb94dbc4f7cfc13c9f3e07929adcd96b3df1c8;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/ubik/ubik.c b/src/ubik/ubik.c index a0c7afd4e..1956bac78 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;