lib-addns: ensure that allocated buffer are pre set to 0
commit88c97513891c00981bf42047aa20db2625d54def
authorMatthieu Patou <mat@matws.net>
Thu, 27 Sep 2012 08:22:57 +0000 (27 01:22 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Oct 2012 09:13:19 +0000 (15 11:13 +0200)
treed5184b13d8f799dd27cf14aeaefe25260145f071
parent0aed1b5f6b78d6745de9bad8b497817cc313c0de
lib-addns: ensure that allocated buffer are pre set to 0

It avoid bugs when one of the buffer is supposed to contain a string
that is not null terminated (ie. label->label) and that we don't force
the last byte to 0.

Fix bug #9259 - rodc join fails complaining that it can't find a RWDC.
lib/addns/dnsmarshall.c