summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-06 23:56:41 +0100
committerMichael Adam <obnox@samba.org>2009-12-07 00:22:52 +0100
commit4c0a4d985f6067a4235bd6cf38f704f28d4858f0 (patch)
tree431aa289c1cb7dba80d7c0e1f3371d03322d8d22 /src/reqs.c
parentc981b246ce2b0b9c3cee5878d0cbefffb8fc2370 (diff)
Add connect_ports list to config struct instead of keeping extra global var.
Michael
Diffstat (limited to 'src/reqs.c')
-rw-r--r--src/reqs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index c92920f..83873df 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -419,7 +419,9 @@ BAD_REQUEST_ERROR:
}
/* Verify that the port in the CONNECT method is allowed */
- if (!check_allowed_connect_ports (request->port)) {
+ if (!check_allowed_connect_ports (request->port,
+ config.connect_ports))
+ {
indicate_http_error (connptr, 403, "Access violation",
"detail",
"The CONNECT method not allowed "