Commit 7679314e authored by Juergen Kosel's avatar Juergen Kosel
Browse files

Prevent socket leak by closing unusable sockets

As reported in https://github.com/eclipse/paho.mqtt.c/issues/135


Socket_new() needs to close unusable sockets.
Otherwise further calls of open() may fail, due to insufficient free
file descriptors.

Signed-off-by: default avatarJuergen Kosel <juergen.kosel@softing.com>
parent 3ab7145a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment