summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/Extensions
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-12-28 08:18:35 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-12-28 08:18:35 -0800
commitd855f2c295e0bbb7a3b73f8dfc933a539c2a2efe (patch)
tree6d309115c206711a6e6a7bba33ac45a7eaddf9f7 /src/DotNetOpenId/Extensions
parent66f7179ed6fa8bc8bcd7e831ebb8ac4548067d85 (diff)
parent360a625667a5e3fcb169710dd35536fc32df8759 (diff)
downloadDotNetOpenAuth-origin/v2.6.zip
DotNetOpenAuth-origin/v2.6.tar.gz
DotNetOpenAuth-origin/v2.6.tar.bz2
Merge branch 'v2.5' into v2.6origin/v2.6
Conflicts: src/version.txt
Diffstat (limited to 'src/DotNetOpenId/Extensions')
-rw-r--r--src/DotNetOpenId/Extensions/AttributeExchange/FetchResponse.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenId/Extensions/AttributeExchange/FetchResponse.cs b/src/DotNetOpenId/Extensions/AttributeExchange/FetchResponse.cs
index 3878d2c..1d58851 100644
--- a/src/DotNetOpenId/Extensions/AttributeExchange/FetchResponse.cs
+++ b/src/DotNetOpenId/Extensions/AttributeExchange/FetchResponse.cs
@@ -116,8 +116,8 @@ namespace DotNetOpenId.Extensions.AttributeExchange {
bool countSent = false;
string countString;
if (fields.TryGetValue("count." + alias, out countString)) {
- if (!int.TryParse(countString, out count) || count <= 0) {
- Logger.ErrorFormat("Failed to parse count.{0} value to a positive integer.", alias);
+ if (!int.TryParse(countString, out count) || count < 0) {
+ Logger.ErrorFormat("Failed to parse count.{0} value to a non-negative integer.", alias);
continue;
}
countSent = true;