diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-07 23:18:11 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-07 23:18:11 +0100 |
commit | 4b707f3076d0208a860e8c4fa5e05a85e09a2102 (patch) | |
tree | a7b362832664057b82ef8f8259e4ff7eedbb4ee7 /src/peer.c | |
parent | 6ada3f4364395fac6c9a64e73492d8826a000127 (diff) | |
download | fastd-4b707f3076d0208a860e8c4fa5e05a85e09a2102.tar fastd-4b707f3076d0208a860e8c4fa5e05a85e09a2102.zip |
Fixed off-by-one in fastd_peer_eth_addr_add
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -225,7 +225,7 @@ void fastd_peer_eth_addr_add(fastd_context *ctx, fastd_peer *peer, const fastd_e } int i; - for (i = ctx->n_eth_addr-1; i > min+1; i--) + for (i = ctx->n_eth_addr-1; i > min; i--) ctx->eth_addr[i] = ctx->eth_addr[i-1]; ctx->eth_addr[min] = (fastd_peer_eth_addr){ *addr, peer, ctx->now }; |