lib-addns: ensure that allocated buffer are pre set to 0 (bug #9259)