]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence unchecked return
authorMark Andrews <marka@isc.org>
Fri, 14 Jun 2019 07:05:55 +0000 (17:05 +1000)
committerMark Andrews <marka@isc.org>
Tue, 25 Jun 2019 05:32:12 +0000 (15:32 +1000)
(cherry picked from commit 134248531c63dd85fa5cc53fe82910148eac8112)

lib/isc/unix/socket.c

index 281a4f7acdd3117e5b868b03bd2cb4728afc642a..78c41fce286cfb16ff9bdaa14a230efbe996c567 100644 (file)
@@ -3039,7 +3039,7 @@ internal_accept(isc__socket_t *sock) {
                inc_stats(manager->stats, sock->statsindex[STATID_ACCEPT]);
        } else {
                inc_stats(manager->stats, sock->statsindex[STATID_ACCEPTFAIL]);
-               isc_refcount_decrement(&NEWCONNSOCK(dev)->references);
+               (void)isc_refcount_decrement(&NEWCONNSOCK(dev)->references);
                free_socket((isc__socket_t **)&dev->newsocket);
        }
 
@@ -5162,7 +5162,7 @@ isc_socket_cancel(isc_socket_t *sock0, isc_task_t *task, unsigned int how) {
                                ISC_LIST_UNLINK(sock->accept_list, dev,
                                                ev_link);
 
-                               isc_refcount_decrement(
+                               (void)isc_refcount_decrement(
                                                &NEWCONNSOCK(dev)->references);
                                free_socket((isc__socket_t **)&dev->newsocket);