2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

2312. [cleanup] Silence Coverity warning in lib/isc/unix/socket.c.

[RT #17458]
This commit is contained in:
Mark Andrews
2008-01-22 01:06:33 +00:00
parent 95c5f1d17b
commit f86c5d30de
2 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.277 2008/01/18 23:46:58 tbox Exp $ */
/* $Id: socket.c,v 1.278 2008/01/22 01:06:33 marka Exp $ */
/*! \file */
@@ -2069,7 +2069,7 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
*/
addrlen = sizeof(dev->newsocket->peer_address.type);
memset(&dev->newsocket->peer_address.type.sa, 0, addrlen);
memset(&dev->newsocket->peer_address.type, 0, addrlen);
fd = accept(sock->fd, &dev->newsocket->peer_address.type.sa,
(void *)&addrlen);