BIND 10 trac1528, updated. 67a08ea405d64a5767215d57b936b0a6b0f7b802 [1528] Nitpick comparison optimization in Linux version of ifacemgr

BIND 10 source code commits bind10-changes at lists.isc.org
Tue May 8 12:50:55 UTC 2012


The branch, trac1528 has been updated
       via  67a08ea405d64a5767215d57b936b0a6b0f7b802 (commit)
      from  3b48a25b8e175427773d9463593b02361333f282 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 67a08ea405d64a5767215d57b936b0a6b0f7b802
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Tue May 8 14:50:29 2012 +0200

    [1528] Nitpick comparison optimization in Linux version of ifacemgr

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/iface_mgr_linux.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/iface_mgr_linux.cc b/src/lib/dhcp/iface_mgr_linux.cc
index e26da5a..d2f7ff4 100644
--- a/src/lib/dhcp/iface_mgr_linux.cc
+++ b/src/lib/dhcp/iface_mgr_linux.cc
@@ -252,7 +252,7 @@ void Netlink::parse_rtattr(RTattribPtrs& table, struct rtattr* rta, int len)
     // immediately follows pointed rta structure. See aforementioned
     // header for details.
     while (RTA_OK(rta, len)) {
-        if (rta->rta_type <= table.size()-1) {
+        if (rta->rta_type < table.size()) {
             table[rta->rta_type] = rta;
         }
         rta = RTA_NEXT(rta,len);



More information about the bind10-changes mailing list