lib-addns: ensure that allocated buffer are pre set to 0 (bug #9259)
authorMatthieu Patou <mat@matws.net>
Thu, 27 Sep 2012 08:22:57 +0000 (01:22 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Oct 2012 10:04:04 +0000 (12:04 +0200)
commitee5a100eaa7cef525a8bc9d1390d7bbdbbfc84fa
tree99d7b95cee544c2bf5e97be2b67a163e1ec0a528
parentc13c6eb11f49b1fd3b3be95c7265cf9c0738b4e8
lib-addns: ensure that allocated buffer are pre set to 0 (bug #9259)

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.
(similar to commit 03c4dceaab82ca2c60c9ce0e09fddd071f98087b)
source3/libaddns/dnsmarshall.c