diff options
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 9c380c5a02..b8513f6b9f 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1892,8 +1892,14 @@ bool unix_wild_match(const char *pattern, const char *string) TALLOC_FREE(ctx); return false; } - strlower_m(p2); - strlower_m(s2); + if (!strlower_m(p2)) { + TALLOC_FREE(ctx); + return false; + } + if (!strlower_m(s2)) { + TALLOC_FREE(ctx); + return false; + } /* Remove any *? and ** from the pattern as they are meaningless */ for(p = p2; *p; p++) { |