-------- Original-Nachricht --------
> Datum: Tue, 04 Aug 2009 09:19:53 +0200
> Von: Karl Heinz Peters <[email protected]>
> An: Steve <[email protected]>
> CC: [email protected]
> Betreff: Re: [Dspam-user] Problem after Upgrading from 3.6.8 to 3.8.0

> Hi Steve,
> 
Hallo Karl Heinz,


> I patched the source and after that, the dspam-daemon eats all cpu an 
> our servers... so, its getting worse with that patch :(
> 
That is good :) I mean it is good to know. It looks like the generation of 
random numbers does not work well on your system.


> any other ideas?
> 
I have to go back and quickly code an example c code. I will post it in the 
next hours.


> greets,
> khp
> 
Steve


> Steve schrieb:
> >> sure, that would be no problem
> >>
> > Since I don't know if the version you use is already patched or not I am
> going to write a small instruction what needs to be changed.
> > 
> > 
> > 1) Open src/mysql_drv.c
> > 2) Search for the function "_ds_create_signature_id"
> > 3) Search inside that function the following loop:
> >      for (j = 0; j < 2; j++)
> >      {
> >        snprintf (digit, 6, "%d", rand ());
> >        strlcat (session, digit, 64);
> >      }
> > 4) Replace that loop with this here:
> >      while (strlen(session) < sizeof(session)) {
> >        snprintf (digit, sizeof(digit), "%d", rand());
> >        strlcat (session, digit, sizeof(session));
> >      }
> > 5) Save the file and then build DSPAM as usual.
> > 6) Let me know if that fixed your issue?
> > 
> > 
> > // Steve
> > 

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to