1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix: Uninitialize variable

Signed-off-by: Jitpanu Maneeratpongsuk <jitpanu.maneeratpongsuk@rwth-aachen.de>
This commit is contained in:
Jitpanu Maneeratpongsuk 2025-01-21 16:12:49 +00:00 committed by al3xa23
parent c07679bc32
commit d3cbf876cf

View file

@ -251,6 +251,8 @@ int villas::node::socket_start(NodeCompat *n) {
if (s->layer != SocketLayer::TCP_CLIENT)
ret = bind(s->sd, (struct sockaddr *)&s->in.saddr, addrlen);
else
ret = 0;
if (ret < 0)
throw SystemError("Failed to bind socket");