2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

1940. [bug] Fixed a number of error conditions reported by

Coverity.
This commit is contained in:
Mark Andrews
2005-11-30 03:33:49 +00:00
parent 91be6c5ba2
commit 2674e1a455
42 changed files with 356 additions and 207 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.256 2005/11/03 22:59:53 marka Exp $ */
/* $Id: socket.c,v 1.257 2005/11/30 03:33:49 marka Exp $ */
/*! \file */
@@ -2716,8 +2716,8 @@ socket_send(isc_socket_t *sock, isc_socketevent_t *dev, isc_task_t *task,
dev->attributes |= ISC_SOCKEVENTATTR_PKTINFO;
dev->pktinfo = *pktinfo;
if (!isc_sockaddr_issitelocal(address) &&
!isc_sockaddr_islinklocal(address)) {
if (!isc_sockaddr_issitelocal(&dev->address) &&
!isc_sockaddr_islinklocal(&dev->address)) {
socket_log(sock, NULL, TRACE, isc_msgcat,
ISC_MSGSET_SOCKET, ISC_MSG_PKTINFOPROVIDED,
"pktinfo structure provided, ifindex %u "