From 281d124fa6a8f2b7184d3cd68b3214e1cda0dbdf Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 31 Dec 2010 12:04:39 +0000 Subject: [PATCH] minor bug fix --- lib/request/inject.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/request/inject.py b/lib/request/inject.py index 827770601..a6d3fa58e 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -424,7 +424,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse value = __goInband(query, expected, sort, resumeValue, unpack, dump) count += 1 - found = value or (value is None and expectingNone) or count >= MAX_TECHNIQUES_PER_VALUE + found = (value is not None) or (value is None and expectingNone) or count >= MAX_TECHNIQUES_PER_VALUE oldUnionNegative = kb.unionNegative kb.unionNegative = False @@ -438,7 +438,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse value = __goError(query, resumeValue) count += 1 - found = value or (value is None and expectingNone) or count >= MAX_TECHNIQUES_PER_VALUE + found = (value is not None) or (value is None and expectingNone) or count >= MAX_TECHNIQUES_PER_VALUE if blind and isTechniqueAvailable(PAYLOAD.TECHNIQUE.BOOLEAN) and not found: kb.technique = PAYLOAD.TECHNIQUE.BOOLEAN @@ -449,7 +449,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse value = __goInferenceProxy(query, fromUser, expected, batch, resumeValue, unpack, charsetType, firstChar, lastChar) count += 1 - found = value or (value is None and expectingNone) or count >= MAX_TECHNIQUES_PER_VALUE + found = (value is not None) or (value is None and expectingNone) or count >= MAX_TECHNIQUES_PER_VALUE if time and (isTechniqueAvailable(PAYLOAD.TECHNIQUE.TIME) or isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED)) and not found: if isTechniqueAvailable(PAYLOAD.TECHNIQUE.TIME):