diff options
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); } |