s4/dnsserver: Don't call memcpy() with a NULL pointer
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 14 Jul 2021 04:09:01 +0000 (16:09 +1200)
committerJeremy Allison <jra@samba.org>
Sat, 4 Sep 2021 00:10:37 +0000 (00:10 +0000)
commit15f0d34d34926f576dc179f65ba397ad137baf46
treef098f3be5db739383db5921eb4abd93e509ea603
parentefcd1af17b4dde0a075cef135ef6bf73a56a1bcc
s4/dnsserver: Don't call memcpy() with a NULL pointer

Doing so is undefined behaviour.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dns_server/dnsserver_common.c