View | Details | Raw Unified | Return to bug 2685 | Differences between
and this patch

Collapse All | Expand All

(-)match.c (-1 / +9 lines)
Lines 40-48 Link Here
40
#include <ctype.h>
40
#include <ctype.h>
41
#include <stdlib.h>
41
#include <stdlib.h>
42
#include <string.h>
42
#include <string.h>
43
#include <stdio.h>
43
44
44
#include "xmalloc.h"
45
#include "xmalloc.h"
45
#include "match.h"
46
#include "match.h"
47
#include "misc.h"
46
48
47
/*
49
/*
48
 * Returns true if the given string matches the pattern (which may contain ?
50
 * Returns true if the given string matches the pattern (which may contain ?
Lines 175-181 match_pattern_list(const char *string, c Link Here
175
int
177
int
176
match_hostname(const char *host, const char *pattern)
178
match_hostname(const char *host, const char *pattern)
177
{
179
{
178
	return match_pattern_list(host, pattern, 1);
180
	char *hostcopy = xstrdup(host);
181
	int r;
182
183
	lowercase(hostcopy);
184
	r = match_pattern_list(hostcopy, pattern, 1);
185
	free(hostcopy);
186
	return r;
179
}
187
}
180
188
181
/*
189
/*

Return to bug 2685