diff options
author | Martin Willi <martin@strongswan.org> | 2008-11-27 09:21:52 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-11-27 09:21:52 +0000 |
commit | 9413628b875ef912027281f25d5ed340bb893ae0 (patch) | |
tree | f4cac6ee26dc1e8472e0b84d1a7d3f7624de2337 /src/libstrongswan/utils/enumerator.c | |
parent | d2de674b9a23b40bbafe98266fc3a0dfcf08cefb (diff) | |
download | strongswan-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.c | 2 |
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; } |