]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
analyze-srvr-safety-check-20080822
authorDerrick Brashear <shadow@dementia.org>
Fri, 22 Aug 2008 19:52:44 +0000 (19:52 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 22 Aug 2008 19:52:44 +0000 (19:52 +0000)
LICENSE IPL10
FIXES 112681

safety check to make sure a conn's srvr is set before dereferencing it

src/afs/afs_analyze.c

index 78d9a5da163343fe2cd7cc2c66558afe339d471a..8557d334a513d4a6bc96185c6bac2e299cf5a703 100644 (file)
@@ -382,7 +382,7 @@ afs_Analyze(register struct conn *aconn, afs_int32 acode,
        return shouldRetry;     /* should retry */
     }
 
-    if (!aconn) {
+    if (!aconn || !aconn->srvr) {
        if (!areq->volumeError) {
            if (aerrP)
                (aerrP->err_Network)++;