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>
Thu, 1 Nov 2012 08:10:37 +0000 (09:10 +0100)
commit2c24bca3212207fa594bd85a054cba5bcee40bb0
treeacabfd17a7a3e32eb10d566fc052bd181db62460
parentd99ed100df916a95ffaf7872247ae731b4f42d64
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)
(cherry picked from commit ee5a100eaa7cef525a8bc9d1390d7bbdbbfc84fa)
source3/libaddns/dnsmarshall.c