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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user