From 14659f5ccce2ef7130b885dea011c0e8adc16f76 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 7 Apr 2003 21:16:20 +0000 Subject: [PATCH] STABLE12-h-gethost-r-race-20030401 FIXES 1308 avoid deref of identP when code is -1 (cherry picked from commit f40a6356f7917b164c4b949bc1916dbcb83a2f38) --- src/viced/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viced/host.c b/src/viced/host.c index cabf71b64b..8d78d9261f 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);