mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-27 04:09:31 +03:00
microspdy: several "unchecked return value"s fixed
This commit is contained in:
@@ -351,7 +351,7 @@ SPDYF_start_daemon_va (uint16_t port,
|
||||
//for GOTO
|
||||
free_and_fail:
|
||||
if(daemon->socket_fd > 0)
|
||||
close (daemon->socket_fd);
|
||||
(void)close (daemon->socket_fd);
|
||||
|
||||
free(servaddr4);
|
||||
#if HAVE_INET6
|
||||
@@ -374,7 +374,7 @@ SPDYF_stop_daemon (struct SPDY_Daemon *daemon)
|
||||
|
||||
shutdown (daemon->socket_fd, SHUT_RDWR);
|
||||
spdyf_close_all_sessions (daemon);
|
||||
close (daemon->socket_fd);
|
||||
(void)close (daemon->socket_fd);
|
||||
|
||||
if(!(SPDY_DAEMON_OPTION_SOCK_ADDR & daemon->options))
|
||||
free(daemon->address);
|
||||
|
||||
@@ -1366,7 +1366,7 @@ SPDYF_session_accept(struct SPDY_Daemon *daemon)
|
||||
free_and_fail:
|
||||
/* something failed, so shutdown, close and free memory */
|
||||
shutdown (new_socket_fd, SHUT_RDWR);
|
||||
close (new_socket_fd);
|
||||
(void)close (new_socket_fd);
|
||||
|
||||
if(NULL != session)
|
||||
{
|
||||
@@ -1467,7 +1467,7 @@ SPDYF_session_destroy(struct SPDY_Session *session)
|
||||
struct SPDYF_Stream *stream;
|
||||
struct SPDYF_Response_Queue *response_queue;
|
||||
|
||||
close (session->socket_fd);
|
||||
(void)close (session->socket_fd);
|
||||
SPDYF_zlib_deflate_end(&session->zlib_send_stream);
|
||||
SPDYF_zlib_inflate_end(&session->zlib_recv_stream);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user