aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/enumerator.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-11-27 09:21:52 +0000
committerMartin Willi <martin@strongswan.org>2008-11-27 09:21:52 +0000
commit9413628b875ef912027281f25d5ed340bb893ae0 (patch)
treef4cac6ee26dc1e8472e0b84d1a7d3f7624de2337 /src/libstrongswan/utils/enumerator.c
parentd2de674b9a23b40bbafe98266fc3a0dfcf08cefb (diff)
downloadstrongswan-9413628b875ef912027281f25d5ed340bb893ae0.tar.bz2
strongswan-9413628b875ef912027281f25d5ed340bb893ae0.tar.xz
token enumerator missed the last token if it contains only a single char
Diffstat (limited to 'src/libstrongswan/utils/enumerator.c')
-rw-r--r--src/libstrongswan/utils/enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/enumerator.c b/src/libstrongswan/utils/enumerator.c
index 1d1c5e9a2..ad8f7ad02 100644
--- a/src/libstrongswan/utils/enumerator.c
+++ b/src/libstrongswan/utils/enumerator.c
@@ -268,7 +268,7 @@ static bool enumerate_token_enum(token_enum_t *this, char **token)
}
}
- if (!last || pos > *token)
+ if (!last || pos >= *token)
{
return TRUE;
}