/[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.1 - (show annotations) (download)
Thu Jun 14 19:18:15 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_40-1_3_el4_sme, qpsmtpd-0_40-1_0_el4_sme, qpsmtpd-0_40-1_5_el4_sme, qpsmtpd-0_40-1_2_el4_sme, qpsmtpd-0_40-1_7_el4_sme, qpsmtpd-0_40-1_4_el4_sme, qpsmtpd-0_40-1_9_el4_sme, qpsmtpd-0_40-1_6_el4_sme, qpsmtpd-0_40-1_12_el4_sme, qpsmtpd-0_40-1_10_el4_sme, qpsmtpd-0_40-1_11_el4_sme, qpsmtpd-0_40-1_1_el4_sme
Branch point for: qpsmtpd-0_40
Import on branch sme7 of package qpsmtpd-0.40-1.0.el4.sme.src.rpm

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