diff options
author | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
commit | a44bb9345f0482b3dace19a27ee40320ddadc75f (patch) | |
tree | 34d75bd95b2868900213e13c31ddd892d2fd4904 /src/pluto/alg_info.c | |
parent | 6e5c8d9413234b18a0631cddadd973a9f509708b (diff) | |
download | strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.bz2 strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.xz |
merged multi-auth branch back into trunk
Diffstat (limited to 'src/pluto/alg_info.c')
-rw-r--r-- | src/pluto/alg_info.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pluto/alg_info.c b/src/pluto/alg_info.c index c998e54e9..ba2fead7a 100644 --- a/src/pluto/alg_info.c +++ b/src/pluto/alg_info.c @@ -171,12 +171,15 @@ static int ealg_getbyname_esp(const char *const str, int len) { if (!str || !*str) + { return -1; + } /* leave special case for eg: "id248" string */ - if (strcmp("id", str) == 0) + if (streq("id", str)) + { return ESP_MAGIC_ID; - + } return enum_search_prefix(&esp_transformid_names, "ESP_", str, len); } |