Package: libapache2-mod-auth-mysql
Version: 4.3.9-2.1
Severity: normal
- The parsing of Auth_MySQL_Port is done incorrectly: a string value
is generated, but the destination is an int
- For the Apache 1.x version, the socket and port alias names are
missing
A patch is attached with the necessary fixes.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.11-grsec
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages libapache2-mod-auth-mysql depends on:
ii apache2-common 2.0.55-4 next generation, scalable, extenda
hi libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libmysqlclient15 5.0.18-9 mysql database client library
libapache2-mod-auth-mysql recommends no packages.
-- no debconf information
--- mod_auth_mysql.c.orig 2006-03-10 00:40:42.000000000 +0100
+++ mod_auth_mysql.c 2006-03-10 00:45:49.000000000 +0100
@@ -699,11 +699,11 @@
(void*)APR_XtOffsetOf(mysql_auth_config_rec, db_socket),
OR_AUTHCFG, "database host socket" ),
- AP_INIT_TAKE1( "Auth_MySQL_Port", ap_set_string_slot,
+ AP_INIT_TAKE1( "Auth_MySQL_Port", ap_set_int_slot,
(void*)APR_XtOffsetOf(mysql_auth_config_rec, db_port),
OR_AUTHCFG, "database host port" ),
- AP_INIT_TAKE1( "AuthMySQL_Port", ap_set_string_slot,
+ AP_INIT_TAKE1( "AuthMySQL_Port", ap_set_int_slot,
(void*)APR_XtOffsetOf(mysql_auth_config_rec, db_port),
OR_AUTHCFG, "database host port" ),
@@ -899,10 +899,18 @@
(void *) XtOffsetOf(mysql_auth_config_rec, db_socket),
OR_AUTHCFG, TAKE1, "database host socket" },
- { "Auth_MySQL_Port", ap_set_string_slot,
- (void *) XtOffsetOf(mysql_auth_config_rec, db_port),
+ { "AuthMySQL_Socket", ap_set_string_slot,
+ (void *) XtOffsetOf(mysql_auth_config_rec, db_socket),
OR_AUTHCFG, TAKE1, "database host socket" },
+ { "Auth_MySQL_Port", ap_set_int_slot,
+ (void *) XtOffsetOf(mysql_auth_config_rec, db_port),
+ OR_AUTHCFG, TAKE1, "database host port" },
+
+ { "AuthMySQL_Port", ap_set_int_slot,
+ (void *) XtOffsetOf(mysql_auth_config_rec, db_port),
+ OR_AUTHCFG, TAKE1, "database host port" },
+
{ "Auth_MySQL_Username", ap_set_string_slot,
(void *) XtOffsetOf(mysql_auth_config_rec, db_user),
OR_AUTHCFG, TAKE1, "database user" },