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, 29 Oct 2012 09:05:45 +0000 (10:05 +0100)
commit3618a49c8c1c934701eabb7031c76db8aea50aed
tree65078f537548007bf8742ebf9863ed7f6f9b2133
parent00281ad9f67459a47d06a6eab64d9157be0638fe
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 1ecbacc354fff78c51c24cc08072881bb3f10d2b)
lib/addns/dnsmarshall.c