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:03:41 +0000 (12:03 +0200)
commit1ecbacc354fff78c51c24cc08072881bb3f10d2b
tree0dfc57e36bdf5224c356b2d18dac933f256d3063
parent0745ce013878f5c45f291bea2fa479f76fc08dd5
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)
lib/addns/dnsmarshall.c