Merging latest develop commits
This commit is contained in:
@@ -125,6 +125,7 @@ void* device_open(int type, const char* devpath, const char* params)
|
||||
if (stty_set(fd, params) != RETURNok) {
|
||||
device_close(devid);
|
||||
devid = NULL;
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,6 +221,8 @@ void* socket_udp_open(int type, const char* host, const char* port)
|
||||
sid->type = type;
|
||||
sid->port = atoi (port);
|
||||
sid->fd = sfd;
|
||||
} else {
|
||||
close (sfd);
|
||||
}
|
||||
|
||||
return sid;
|
||||
|
||||
Reference in New Issue
Block a user