Changeset 24bb363 in mainline for uspace/srv/net/ethip/ethip_nic.c


Ignore:
Timestamp:
2013-09-09T21:04:18Z (11 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
54dee316
Parents:
ee7f78a
Message:

Move assert to correct place.

The assert has to be after the IPv6 check so that
IPv4 entries in the list do not trigger it when
all IPv6 entries have been processed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/ethip/ethip_nic.c

    ree7f78a r24bb363  
    372372       
    373373        list_foreach(nic->addr_list, link) {
    374                 assert(i < count);
    375                
    376374                ethip_link_addr_t *laddr = list_get_instance(link,
    377375                    ethip_link_addr_t, link);
     
    381379                if (af != AF_INET6)
    382380                        continue;
     381               
     382                assert(i < count);
    383383               
    384384                addr48_t mac;
Note: See TracChangeset for help on using the changeset viewer.