Author: radu
Date: Thu Sep 4 04:41:48 2008
New Revision: 940
Modified:
trunk/Changes
trunk/qpsmtpd-prefork
Log:
Untaint the value of the --interface option.
Modified: trunk/Changes
==============================================================================
--- trunk/Changes (original)
+++ trunk/Changes Thu Sep 4 04:41:48 2008
@@ -1,3 +1,6 @@
+ prefork: untaint the value of the --interface option (reported by
+ Diego d'Ambra)
+
prefork: the children pool size was sometimes not adjusted immediately
after the exit of children (reported by Diego d'Ambra)
Modified: trunk/qpsmtpd-prefork
==============================================================================
--- trunk/qpsmtpd-prefork (original)
+++ trunk/qpsmtpd-prefork Thu Sep 4 04:41:48 2008
@@ -118,6 +118,7 @@
) || &usage;
if ($user =~ /^([\w\-]+)$/) { $user = $1 } else { &usage }
+if ($d_addr =~ /^(\[.*\]|[\w\-.]+)$/) { $d_addr = $1 } else { &usage }
# set max from ip to max number of children if option is set to disabled
$maxconnip = $max_children if ($maxconnip == 0);