mirror of https://github.com/status-im/BearSSL.git
Fixed fd leak in test code.
This commit is contained in:
parent
d5acc4f590
commit
08eb07825b
|
@ -161,9 +161,10 @@ br_prng_seeder_system(const char **name)
|
|||
*name = "win32";
|
||||
}
|
||||
return &seeder_win32;
|
||||
#endif
|
||||
#else
|
||||
if (name != NULL) {
|
||||
*name = "none";
|
||||
}
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1218,6 +1218,13 @@ server_exit:
|
|||
closesocket(fd);
|
||||
#else
|
||||
close(fd);
|
||||
#endif
|
||||
}
|
||||
if (server_fd != INVALID_SOCKET) {
|
||||
#ifdef _WIN32
|
||||
closesocket(server_fd);
|
||||
#else
|
||||
close(server_fd);
|
||||
#endif
|
||||
}
|
||||
return retcode;
|
||||
|
|
Loading…
Reference in New Issue