]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
h-gethost-r-race-20030401
authorDerrick Brashear <shadow@dementia.org>
Mon, 7 Apr 2003 21:11:35 +0000 (21:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 7 Apr 2003 21:11:35 +0000 (21:11 +0000)
FIXES 1308

don't deref null identP if code was -1

src/viced/host.c

index fdcb6dc35c982cf39805fc6f260b1a02cc97bd76..95f4f616fd70c94c6d71a561f9b78168d988337a 100644 (file)
@@ -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);