fix: bad memset length in ip_init()