This avoids undefined behaviour on zero length rdata where the
data pointer is NULL.
(cherry picked from commit 228cc557fe)
This avoids undefined behaviour on zero length rdata where the
data pointer is NULL.
(cherry picked from commit 228cc557fe)