rpms/mod_auth_pgsql/FC-2 mod_auth_pgsql-2.0.1-crasher.patch, NONE, 1.1 mod_auth_pgsql.spec, 1.14, 1.15

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Apr 4 11:59:17 UTC 2005


Update of /cvs/dist/rpms/mod_auth_pgsql/FC-2
In directory cvs.devel.redhat.com:/tmp/cvs-serv23910

Modified Files:
	mod_auth_pgsql.spec 
Added Files:
	mod_auth_pgsql-2.0.1-crasher.patch 
Log Message:
* Mon Apr  4 2005 Joe Orton <jorton at redhat.com> 2.0.1-4.2
- fix possible crashes (Mirko Streckenbach, #150087)


mod_auth_pgsql-2.0.1-crasher.patch:
 mod_auth_pgsql.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE mod_auth_pgsql-2.0.1-crasher.patch ---
--- mod_auth_pgsql-2.0.1/mod_auth_pgsql.c.crasher
+++ mod_auth_pgsql-2.0.1/mod_auth_pgsql.c
@@ -757,11 +757,12 @@
 	char *sent_pw, *real_pw;
 	int res;
 	char *user;
-	user = r->user;
 
 	if ((res = ap_get_basic_auth_pw(r, (const char **) &sent_pw)))
 		return res;
 
+	user = r->user;
+
 #ifdef DEBUG_AUTH_PGSQL
 	ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r,
 				  "[mod_auth_pgsql.c] - pg_authenticate_basic_user - going to auth user \"%s\" pass \"%s\" uri \"%s\"",


Index: mod_auth_pgsql.spec
===================================================================
RCS file: /cvs/dist/rpms/mod_auth_pgsql/FC-2/mod_auth_pgsql.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- mod_auth_pgsql.spec	9 Sep 2004 08:43:18 -0000	1.14
+++ mod_auth_pgsql.spec	4 Apr 2005 11:59:15 -0000	1.15
@@ -3,11 +3,12 @@
 Summary: Basic authentication for the Apache web server using a PostgreSQL database.
 Name: mod_auth_pgsql
 Version: 2.0.1
-Release: 4.1
+Release: 4.2
 Group: System Environment/Daemons
 URL: http://www.giuseppetanzilli.it/mod_auth_pgsql2/
 Source: http://www.giuseppetanzilli.it/mod_auth_pgsql2/dist/mod_auth_pgsql-%{version}.tar.gz
 Source1: auth_pgsql.conf
+Patch0: mod_auth_pgsql-2.0.1-crasher.patch
 License: Apache Software License
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildPrereq: httpd-devel >= 2.0.40-6, postgresql-devel
@@ -20,6 +21,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .crasher
 
 %build
 %{_sbindir}/apxs -c %{name}.c -lpq
@@ -51,6 +53,9 @@
 %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
 
 %changelog
+* Mon Apr  4 2005 Joe Orton <jorton at redhat.com> 2.0.1-4.2
+- fix possible crashes (Mirko Streckenbach, #150087)
+
 * Tue Mar 02 2004 Elliot Lee <sopwith at redhat.com>
 - rebuilt
 




More information about the fedora-cvs-commits mailing list