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

Annotation of /rpms/qpsmtpd/sme8/qpsmtpd-0.32-dns-random-id.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Jun 14 20:07:19 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: qpsmtpd-0_40-1_11_el5_sme, qpsmtpd-0_40-1_10_el5_sme, qpsmtpd-0_40-1_1_el5_sme, qpsmtpd-0_40-1_5_el5_sme, qpsmtpd-0_40-1_2_el5_sme, qpsmtpd-0_40-1_9_el5_sme, qpsmtpd-0_40-1_3_el5_sme, qpsmtpd-0_40-1_6_el5_sme, qpsmtpd-0_40-1_0_el5_sme, qpsmtpd-0_40-1_7_el5_sme, qpsmtpd-0_40-1_4_el5_sme
Import on branch sme8 of package qpsmtpd-0.40-1.0.el5.sme.src.rpm

1 slords 1.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