STABLE12-h-gethost-r-race-20030401

FIXES 1308

avoid deref of identP when code is -1


(cherry picked from commit f40a6356f7)
This commit is contained in:
Derrick Brashear 2003-04-07 21:16:20 +00:00
parent dcbfb6a781
commit 14659f5ccc

View File

@ -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);