Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] [PATCH]: Infinite recursion with SQL database



******    message to minivend-users from Stefan Hornburg <racke@linuxia.de>     ******


This rather simple patch fixes infinite recursion, which
occurs if you have passed the wrong password for a SQL
database. It don't know about possible side effects,
but IMHO it is better than MV eating all memory on a server.

--- lib/Vend/Data.pm	2000/04/02 10:20:34	1.2
+++ lib/Vend/Data.pm	2000/06/08 12:08:40
@@ -773,7 +773,7 @@
 
 		if($@) {
 #::logDebug("Dieing of $@");
-			die $@ unless $no_import;
+			die $@; # unless $no_import;
 			if(! -f $database_dbm) {
 				$Vend::ForceImport{$obj->{name}} = 1;
 				return import_database($obj);


Ciao
        Racke

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: