s3:lib: Fix undefined behavior in tdb_pack()
authorAndreas Schneider <asn@samba.org>
Thu, 22 Nov 2018 12:33:11 +0000 (13:33 +0100)
committerGary Lockyer <gary@samba.org>
Mon, 3 Dec 2018 20:16:31 +0000 (21:16 +0100)
commit86592673fbd3399b35832ca138681b06cb007b2c
tree5a1248b929d507102de98c4c4cdeea5488bc8c77
parent4e9b3ed4126fad653f219334cbca2dbf53ddfc20
s3:lib: Fix undefined behavior in tdb_pack()

util_tdb.c:98:5: runtime error: null pointer passed as argument 2, which
is declared to never be null

This means the second argument of memcpy() can't be NULL.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/lib/util_tdb.c