diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-14 11:40:02 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-14 11:40:02 +0000 |
commit | 346fd9f2711393966de12264229865d74a9e1b69 (patch) | |
tree | 2f3d3d69ce6c416eeda06c83db8113b00b558f5c /Source/charon/definitions.c | |
parent | 5af9fef305718063f3f1a2bc9d32cb010dd5e642 (diff) | |
download | strongswan-346fd9f2711393966de12264229865d74a9e1b69.tar.bz2 strongswan-346fd9f2711393966de12264229865d74a9e1b69.tar.xz |
- fixed bug in mapping_find
Diffstat (limited to 'Source/charon/definitions.c')
-rw-r--r-- | Source/charon/definitions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/definitions.c b/Source/charon/definitions.c index a866cc525..4df86221b 100644 --- a/Source/charon/definitions.c +++ b/Source/charon/definitions.c @@ -28,13 +28,13 @@ char *mapping_find(mapping_t * maps, int value) { int i = 0; - while (maps[i].value > MAPPING_END) + while (maps[i].value != MAPPING_END) { - i++; if (maps[i].value == value) { return maps[i].string; } + i++; } return "INVALID MAPPING"; } |