Fix a memory corruption when updating IPv6 prefixes