Permalink
Browse files

Untaint the value of the --interface option.

git-svn-id: https://svn.perl.org/qpsmtpd/trunk@940 958fd67b-6ff1-0310-b445-bb7760255be9
  • Loading branch information...
1 parent e4f0cb0 commit aa802e6844930228dd6135767b41516c6bf42f72 Radu Greab committed with abh Sep 4, 2008
Showing with 4 additions and 0 deletions.
  1. +3 −0 Changes
  2. +1 −0 qpsmtpd-prefork
View
@@ -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)
View
@@ -118,6 +118,7 @@ GetOptions(
) || &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);

0 comments on commit aa802e6

Please sign in to comment.