From f95c5df7d91c6e79f3afb83e20e56d123930a519 Mon Sep 17 00:00:00 2001 From: julienabeille Date: Wed, 25 Feb 2009 08:35:52 +0000 Subject: [PATCH] The global prefixes processed must be one less than the total amount of prefixes, as the link local one occupies one slot --- core/net/uip-nd6-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/uip-nd6-io.c b/core/net/uip-nd6-io.c index 0f41b81d1..16c144714 100644 --- a/core/net/uip-nd6-io.c +++ b/core/net/uip-nd6-io.c @@ -746,7 +746,7 @@ uip_nd6_io_ra_input(void) { /* Prefix information options processing */ i = 0; - while((i < UIP_CONF_ND6_MAX_PREFIXES) && (nd6_opt_prefix_info[i] != NULL)) { + while((i < UIP_CONF_ND6_MAX_PREFIXES - 1) && (nd6_opt_prefix_info[i] != NULL)) { PRINTF("Processing PREFIX option in RA\n"); if((ntohl((nd6_opt_prefix_info[i])->validlt) >=