It's a valid defect. We'll raise a bug
if you don't, Martin.
Ian
On 30/05/13 16:31, Dave Locke wrote:
Hi Martin,
many thanks for the heads up and
fix
It would be handy if you can raise this on the paho bugzilla
here:
https://bugs.eclipse.org/bugs/buglist.cgi?order=Bug%20Number&classification=Technology&query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Paho&list_id=5711100
All the best
Dave
From:
"Malik, Martin"
<Martin.Malik@xxxxxxxxxxxx>
To:
"paho-dev@xxxxxxxxxxx"
<paho-dev@xxxxxxxxxxx>
Date:
30/05/2013 15:46
Subject:
[paho-dev] Bug
in SSLSocket
Sent by:
paho-dev-bounces@xxxxxxxxxxx
Hello,
I found a bug in the SSLSocket.c
handling
of pointers for mutexes in WIN32.
It’s easy to fix it, just replace:
mutex = CreateMutex(NULL, 0, NULL);
to
*mutex = CreateMutex(NULL, 0, NULL);
if (WaitForSingleObject(mutex, INFINITE) != WAIT_FAILED)
to
if (WaitForSingleObject(*mutex, INFINITE) != WAIT_FAILED)
if (ReleaseMutex(mutex) != 0)
to
if (ReleaseMutex(*mutex) != 0)
rc = CloseHandle(mutex);
to
rc = CloseHandle(*mutex);
A fixed SSLSocket.c file is
attached.
Regards,
Martin[attachment "sslsocket.c"
deleted by Dave Locke/UK/IBM] _______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/paho-dev
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales
with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth,
Hampshire PO6
3AU
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/paho-dev
|