From: Derrick Brashear Date: Mon, 7 Apr 2003 21:16:20 +0000 (+0000) Subject: STABLE12-h-gethost-r-race-20030401 X-Git-Tag: openafs-stable-1_2_9~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=14659f5ccce2ef7130b885dea011c0e8adc16f76;p=packages%2Fo%2Fopenafs.git STABLE12-h-gethost-r-race-20030401 FIXES 1308 avoid deref of identP when code is -1 (cherry picked from commit f40a6356f7917b164c4b949bc1916dbcb83a2f38) --- diff --git a/src/viced/host.c b/src/viced/host.c index cabf71b64..8d78d9261 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1101,6 +1101,7 @@ retry: else pident = 1; identP->valid = 1; + interfValid = 1; identP->uuid = interf.uuid; if (!pident) rx_SetSpecific(tcon, rxcon_ident_key, identP); @@ -1108,7 +1109,6 @@ retry: afs_inet_ntoa_r(host->host, hoststr), ntohs(host->port))); } - interfValid=identP->valid; if (code == 0 && !identP->valid) { H_UNLOCK code = RXAFSCB_InitCallBackState(host->callback_rxcon);