Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Bug in SSLSocket

Ian will handle the bug.

For info, the following link can be used to create a login to the Eclipse bugzilla: https://bugs.eclipse.org/bugs/


All the best
Dave

 



From:        "Malik, Martin" <Martin.Malik@xxxxxxxxxxxx>
To:        General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date:        31/05/2013 07:37
Subject:        Re: [paho-dev] Bug in SSLSocket
Sent by:        paho-dev-bounces@xxxxxxxxxxx




I don’t know how to get a login in that Bugzilla, so please raise the bug.
 
Regards,
Martin
 
From: paho-dev-bounces@xxxxxxxxxxx [mailto:paho-dev-bounces@xxxxxxxxxxx] On Behalf Of Ian Craggs
Sent:
Thursday, May 30, 2013 11:58 PM
To:
General development discussions for paho project
Subject:
Re: [paho-dev] Bug in SSLSocket

 
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
 _______________________________________________
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

Back to the top