fixed a bug in enum_from_name() function
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 12 Dec 2010 11:54:36 +0000 (12:54 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 12 Dec 2010 11:54:36 +0000 (12:54 +0100)
src/libstrongswan/enum.c

index 258a5b4..5c811bd 100644 (file)
@@ -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++)
                {