lib-addns: ensure that allocated buffer are pre set to 0