Commit d140ae28 authored by Mark Andrews's avatar Mark Andrews
Browse files

1976. [bug] Handle systems with no IPv4 addresses. [RT #15695]

parent 83a27fc4
1976. [bug] Handle systems with no IPv4 addresses. [RT #15695]
1975. [bug] libbind: isc_gethexstring() could misparse multi-line
hex strings with comments. [RT #15814]
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ifiter_ioctl.c,v 1.53 2005/10/14 01:14:10 marka Exp $ */
/* $Id: ifiter_ioctl.c,v 1.54 2006/02/02 22:32:27 marka Exp $ */
/*! \file
* \brief
......@@ -530,7 +530,8 @@ internal_current4(isc_interfaceiter_t *iter) {
#endif
REQUIRE(VALID_IFITER(iter));
REQUIRE (iter->pos < (unsigned int) iter->ifc.ifc_len);
REQUIRE(iter->ifc.ifc_len == 0 ||
iter->pos < (unsigned int) iter->ifc.ifc_len);
#ifdef __linux
result = linux_if_inet6_current(iter);
......@@ -539,6 +540,9 @@ internal_current4(isc_interfaceiter_t *iter) {
iter->first = ISC_TRUE;
#endif
if (iter->ifc.ifc_len == 0)
return (ISC_R_NOMORE);
ifrp = (struct ifreq *)((char *) iter->ifc.ifc_req + iter->pos);
memset(&ifreq, 0, sizeof(ifreq));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment