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

avoid deref of identP when code is -1

(cherry picked from commit f40a6356f7917b164c4b949bc1916dbcb83a2f38)

src/viced/host.c

index cabf71b64b8bfc2f2c266bd3d57e93f17ce22da0..8d78d9261fd1b78bf57de0fd1f4b5d616584f17d 100644 (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);