]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
libafs: put connection in analyze when conn srvr missing
authorDerrick Brashear <shadow@dementix.org>
Tue, 19 Jun 2012 19:11:38 +0000 (15:11 -0400)
committerDerrick Brashear <shadow@dementix.org>
Fri, 6 Jul 2012 18:27:15 +0000 (11:27 -0700)
we need to putconn in all cases we can in afs_Analyze, but at least
one case we didn't. fixed.

(cherry picked from commit e2d094595fd76e76e4a5861114202f513d02c2b1)

Change-Id: I04e2d0f8b1002b9a6a73b8ff6755157460504da9
Reviewed-on: http://gerrit.openafs.org/7569
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs_analyze.c

index efda1be9a7bba5bc19e2a41db8fa0d98c79d5d12..856b402e68833d7bfb9c322049657a53ed086eb0 100644 (file)
@@ -533,6 +533,8 @@ afs_Analyze(struct afs_conn *aconn, struct rx_connection *rxconn,
                }
            }
        }
+       if (aconn) /* simply lacking aconn->server doesn't absolve this */
+           afs_PutConn(aconn, rxconn, locktype);
        return shouldRetry;
     }