avoid rdata length = 0 bug