Linked-list bug in new "use longest prefixes first" code.
diff --git a/src/dhcp6.c b/src/dhcp6.c
index 8f2e053..dd88058 100644
--- a/src/dhcp6.c
+++ b/src/dhcp6.c
@@ -236,6 +236,8 @@
 		  for (up = &param->current, tmp = param->current; tmp; tmp = tmp->current)
 		    if (tmp->preferred <= preferred)
 		      break;
+		    else
+		      up = &tmp->current;
 		  
 		  context->current = *up;
 		  *up = context;