diff options
-rw-r--r-- | src/config.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c index 7503f0ea..256a9a94 100644 --- a/src/config.c +++ b/src/config.c @@ -274,10 +274,8 @@ static int ssh_config_match(char *value, const char *pattern, bool negate) { int ok, result = 0; - char *lowervalue; - lowervalue = (value) ? ssh_lowercase(value) : NULL; - ok = match_pattern_list(lowervalue, pattern, strlen(pattern), 0); + ok = match_pattern_list(value, pattern, strlen(pattern), 0); if (ok <= 0 && negate == true) { result = 1; } else if (ok > 0 && negate == false) { @@ -286,7 +284,6 @@ ssh_config_match(char *value, const char *pattern, bool negate) SSH_LOG(SSH_LOG_TRACE, "%s '%s' against pattern '%s'%s (ok=%d)", result == 1 ? "Matched" : "Not matched", value, pattern, negate == true ? " (negated)" : "", ok); - SAFE_FREE(lowervalue); return result; } |