/[smeserver]/rpms/qpsmtpd/sme7/qpsmtpd-0.32-net_dns.patch2
ViewVC logotype

Contents of /rpms/qpsmtpd/sme7/qpsmtpd-0.32-net_dns.patch2

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


Revision 1.2 - (show annotations) (download)
Thu Jun 14 19:18:15 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Import on branch sme7 of package qpsmtpd-0.40-1.0.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.32/qpsmtpd-forkserver mezzanine_patched_qpsmtpd-0.32/qpsmtpd-forkserver
2 --- qpsmtpd-0.32/qpsmtpd-forkserver 2006-02-26 07:22:16.000000000 -0500
3 +++ mezzanine_patched_qpsmtpd-0.32/qpsmtpd-forkserver 2007-02-16 16:54:02.000000000 -0500
4 @@ -14,6 +14,7 @@
5 use Socket;
6 use Getopt::Long;
7 use POSIX qw(:sys_wait_h :errno_h :signal_h);
8 +use Net::DNS::Header;
9 use strict;
10 $| = 1;
11
12 @@ -230,10 +231,12 @@
13 next;
14 }
15 # otherwise child
16 -
17 # all children should have different seeds, to prevent conflicts
18 - srand( time ^ ($$ + ($$ << 15)) );
19 -
20 + srand(time ^ ($$ + ($$ << 15)));
21 + for (0 .. rand(65536)) {
22 + Net::DNS::Header::nextid();
23 + }
24 +
25 close($server);
26
27 $SIG{$_} = 'DEFAULT' for keys %SIG;

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