/[smeserver]/rpms/qpsmtpd/sme7/qpsmtpd-0.32-dns-random-id.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme7/qpsmtpd-0.32-dns-random-id.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Fri Oct 16 22:49:40 2009 UTC (14 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Update to 0.83

1 --- qpsmtpd-forkserver.dns-random-id Sun Feb 26 13:22:16 2006
2 +++ qpsmtpd-forkserver Sat Mar 18 23:31:20 2006
3 @@ -14,6 +14,7 @@
4 use Socket;
5 use Getopt::Long;
6 use POSIX qw(:sys_wait_h :errno_h :signal_h);
7 +use Net::DNS::Header;
8 use strict;
9 $| = 1;
10
11 @@ -232,7 +233,10 @@
12 # otherwise child
13
14 # all children should have different seeds, to prevent conflicts
15 - srand( time ^ ($$ + ($$ << 15)) );
16 + srand();
17 + for (0 .. rand(65536)) {
18 + Net::DNS::Header::nextid();
19 + }
20
21 close($server);
22

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed