From f40a6356f7917b164c4b949bc1916dbcb83a2f38 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 7 Apr 2003 21:11:35 +0000 Subject: [PATCH] h-gethost-r-race-20030401 FIXES 1308 don't deref null identP if code was -1 --- 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 fdcb6dc35..95f4f616f 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1105,6 +1105,7 @@ retry: assert(0); } identP->valid = 1; + interfValid = 1; identP->uuid = interf.uuid; if (!pident) rx_SetSpecific(tcon, rxcon_ident_key, identP); @@ -1112,7 +1113,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); -- 2.39.5