lib-addns: ensure that allocated buffer are pre set to 0
authorMatthieu Patou <mat@matws.net>
Thu, 27 Sep 2012 08:22:57 +0000 (01:22 -0700)
committerMatthieu Patou <mat@matws.net>
Mon, 8 Oct 2012 04:51:02 +0000 (21:51 -0700)
commit03c4dceaab82ca2c60c9ce0e09fddd071f98087b
tree2990d2015ba7948d9046fa72e41b9108440bce7f
parent85259635d60bc29421a878ec4118d4449c9a359d
lib-addns: ensure that allocated buffer are pre set to 0

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.
lib/addns/dnsmarshall.c