]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vlserver: Use correct base value when replacing
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 19 May 2011 17:19:29 +0000 (18:19 +0100)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 29 Aug 2013 10:26:36 +0000 (03:26 -0700)
commitd43bdbb42a7f7a5663f0944c4e672ca81aa7b940
tree1e321451ee54a18ed19b294588dad85df4e66a0d
parentc155fa4fe2a2c6ebc2da31083c24ddeb355b5700
vlserver: Use correct base value when replacing

When we're removing existing address entries the code calculates
a base and index value for each entry that we're removing an address
from. However, it then _uses_ a previously calculated base value,
with the new index. This works fine if the old base and the new base
match, but if they don't, chaos will ensue.

Fix to always use matched base and index pairs.

Reviewed-on: http://gerrit.openafs.org/4771
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a180b0c5d8991a14f1fbd78d81dcb4754a24f4d3)

Change-Id: I37372f020ad644f30b6dbdd1ed68b56eb1c0f2e2
Reviewed-on: http://gerrit.openafs.org/9429
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vlserver/vlprocs.c