diff options
Diffstat (limited to 'src/libstrongswan/enum.c')
-rw-r--r-- | src/libstrongswan/enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/enum.c b/src/libstrongswan/enum.c index 258a5b410..5c811bd17 100644 --- a/src/libstrongswan/enum.c +++ b/src/libstrongswan/enum.c @@ -43,7 +43,7 @@ int enum_from_name(enum_name_t *e, char *name) { do { - int i, count = e->last - e->first; + int i, count = e->last - e->first + 1; for (i = 0; i < count; i++) { |