viced-callback-avoid-potential-looping-problem-20020201
authorHartmut Reuter <reuter@rzg.mpg.de>
Fri, 1 Feb 2002 22:12:51 +0000 (22:12 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 1 Feb 2002 22:12:51 +0000 (22:12 +0000)
avoid case where we never come out of loop attempting to clear host cvallbacks

src/viced/callback.c

index 1863659..e8472f9 100644 (file)
@@ -1427,6 +1427,7 @@ static int GetSomeSpace_r(hostp, locked)
            cbstuff.GSS4++;
            if ( ! ClearHostCallbacks_r(hp, 0 /* not locked or held */) )
                return;
+           hp1 = hp;
        } else {
            hp1 = hostp;
            cbstuff.GSS1++;