possible bug in silcunixschedule.c (trunk)

[email protected]
Newsgroups gmane.network.silc.devel
Message-ID <[email protected]>
Hi,

I suppose there is a bug in ./lib/silcutil/unix/silcunixschedule.c 
[! SILC_THREADS] (silc_schedule_internal_init)
  * internal->wakeup_task is only initialized if [SILC_THREADS]
  * silc_schedule_internal_schedule_fd is called, which in turn
    relies on internal->wakeup_task and segfauls because of null
    pointer deref

possible solution: call silc_schedule_internal_schedule_fd on
[SILC_THREADS] only (i.e. move #ifdef down by three lines)

I'm not convinced that that's the right fix since I'm not into
libsilcutil at all.  Therefore please reconsider this :-)

cheers, 
  stesie


PS: I'm currently trying to get silc-client-1.1-beta2 to run with a
silc-server (cvs), but failing.  I Always get
`Error during key exchange with vs150090.vserver.de: Unsupported cipher'
errors +  silcfsm.c:305: silc_fsm_finish: Assertion
`silc_atomic_get_int32(&f->u.m.threads) == 0' failed

I'll give it another go tomorrow and maybe have a look what's wrong
soon.

-- 
Do not worry about your difficulties in mathematics;
I can assure you that mine are still greater.
                                  -- Albert Einstein
_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.