Compare commits

..

2 commits

Author SHA1 Message Date
ea88466a98 Update third-party submodule SimpleArchiver
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 16s
2024-09-13 11:40:01 +09:00
371c180cc7 Minor fix
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
2024-09-12 14:55:51 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ int create_tcp_socket(unsigned short port) {
} }
void cleanup_tcp_socket(int *tcp_socket) { void cleanup_tcp_socket(int *tcp_socket) {
if (tcp_socket && *tcp_socket != -1) { if (tcp_socket && *tcp_socket >= 0) {
close(*tcp_socket); close(*tcp_socket);
*tcp_socket = -1; *tcp_socket = -1;
} }

@ -1 +1 @@
Subproject commit 2252b7d7324454560f15286feb2e59f8deee0dc2 Subproject commit 6b862ab022202523606bda2fe39236c71891b304