Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT- C Client not cleaning Open SSL Properly, causing crashes #13

Closed
jpwsutton opened this issue Feb 4, 2016 · 1 comment
Closed
Assignees
Milestone

Comments

@jpwsutton
Copy link
Contributor

migrated from Bugzilla #480363
status ASSIGNED severity major in component MQTT-C for 1.2
Reported in version 1.2 on platform PC
Assigned to: Ian Craggs

On 2015-10-21 20:38:14 -0400, Angelo Ribeiro wrote:

I'm using: paho-mqtt3cs.

We've identified that on SSLSocket.c we are not cleaning CRYPTO_set_locking_callback.

So, if another client (Paho or other client that uses SSL), tries to use OpenSSL, it will crash.

Basically, when Paho calls SSLSocket_terminate() we should add the code to reset the locking_callback.

Suggested code:
void SSLSocket_terminate()
{
FUNC_ENTRY;
CRYPTO_set_locking_callback(NULL);
free(sslLocks);
sslLocks = NULL;
FUNC_EXIT;
}

Let me know if you have problem reproducing this error.

Thanks,

Angelo Ribeiro.

On 2015-10-26 17:50:54 -0400, Eclipse Genie wrote:

GitHub Pull Request 3 created by [aribeironovaes]
#3

On 2015-11-10 11:42:45 -0500, Ian Craggs wrote:

Thanks. I'll get this in asap.

icraggs pushed a commit that referenced this issue May 31, 2016
Bug: 480363
@icraggs icraggs added this to the 1.1 milestone May 31, 2016
@icraggs icraggs self-assigned this May 31, 2016
@icraggs
Copy link
Contributor

icraggs commented May 31, 2016

Fix added to develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants