Re-entrant bug in gwlib/conn.c (SSL)

"Paul Keogh" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
conn_shutdown_ssl() must set ssl_static_locks = NULL 

and

server_shutdown_ssl () must set ssl_server_static_locks = NULL

for the matching _init () functions to be reentrant. This is 
because both _init () functions do a gw_assert () on the
ssl_static_... variables being NULL. So if you do;

_init ()
_shutdown ()
_init ()
_shutdown ()

within a single process, every dies on the second _init ().

Does'nt affect the Kannel processes directly, but is important for
anyone using the libraries elsewhere.


Paul Keogh
ANAM Wireless Internet Solutions
http://www.anam.com                     
+353 1 284 7555 (wired)               +353 86 234 6047 (wireless)
Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland
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.