openbsd-ports/www/mod_fastcgi/patches/patch-fcgi_config_c
simon d0b6fc23a9 update to mod_fastcgi-SNAP-0811090952 in order to get http-auth
passthrough working among other fixes

running in production for a few months now
reads good to sthen@
2009-06-19 12:19:00 +00:00

16 lines
669 B
Plaintext

$OpenBSD: patch-fcgi_config_c,v 1.1 2009/06/19 12:19:00 simon Exp $
Cast like it's done in httpd sources.
--- fcgi_config.c.orig Wed Jan 28 23:46:44 2009
+++ fcgi_config.c Wed Jan 28 23:54:56 2009
@@ -1204,7 +1204,7 @@ const char *fcgi_config_new_auth_server(cmd_parms * cm
if (compat && strcasecmp(compat, "-compat"))
return ap_psprintf(cmd->temp_pool, "%s: unknown option: \"%s\"", cmd->cmd->name, compat);
- switch((int)cmd->info) {
+ switch((int)(long)cmd->info) {
case FCGI_AUTH_TYPE_AUTHENTICATOR:
dir_config->authenticator = auth_server;
dir_config->authenticator_options |= (compat) ? FCGI_COMPAT : 0;