Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix coverity reports
  • Loading branch information
Fabian Mauchle committed Jul 29, 2021
1 parent 241164a commit f4eaf64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dtls.c
Expand Up @@ -534,6 +534,7 @@ static void cleanup_connection(struct server *server) {
SSL_shutdown(server->ssl);
if (server->sock >= 0)
close(server->sock);
server->sock = -1;
if (server->ssl)
SSL_free(server->ssl);
server->ssl = NULL;
Expand Down
1 change: 1 addition & 0 deletions tls.c
Expand Up @@ -87,6 +87,7 @@ static void cleanup_connection(struct server *server) {
SSL_shutdown(server->ssl);
if (server->sock >= 0)
close(server->sock);
server->sock = -1;
if (server->ssl)
SSL_free(server->ssl);
server->ssl = NULL;
Expand Down

0 comments on commit f4eaf64

Please sign in to comment.