diff options
author | Michael Adam <obnox@samba.org> | 2009-12-06 23:56:41 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-07 00:22:52 +0100 |
commit | 4c0a4d985f6067a4235bd6cf38f704f28d4858f0 (patch) | |
tree | 431aa289c1cb7dba80d7c0e1f3371d03322d8d22 /src/reqs.c | |
parent | c981b246ce2b0b9c3cee5878d0cbefffb8fc2370 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 " |