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)
commit40b279fa34ae8ad37097a0d62677056495ff0b86
tree1a9d2e95953c79837cf0e4a3ed27044e230e22a1
parent8d2f53df79dd63bdac73c55020e83416e6025c19
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)
addns/dnsmarshall.c