Revision c99050cc sysdep/linux/netlink.c

View differences:

sysdep/linux/netlink.c
677 677
	nh_buf_size = nh_buf_size ? (nh_buf_size * 2) : 4;
678 678
	nh_buffer = xrealloc(nh_buffer, nh_buf_size * NEXTHOP_MAX_SIZE);
679 679
      }
680
      *last = rv = nh_buffer + nh_buf_used++;
681
      rv->next = NULL;
680
      /* FIXME: This is really ugly */
681
      *last = rv = (void *) (((byte *) nh_buffer) + (nh_buf_used++ * NEXTHOP_MAX_SIZE));
682
      memset(rv, 0, NEXTHOP_MAX_SIZE);
683
      // rv->next = NULL;
682 684
      last = &(rv->next);
683 685

  
684 686
      rv->flags = 0;

Also available in: Unified diff