21 September 2007: Wouter
- fixup empty_DS_name allocated in wrong region.
+ - fixup testcode lock safety.
20 September 2007: Wouter
- fixup and test for NSEC wildcard with empty nonterminals.
int ret;
struct edns_data edns;
entry_to_buf(e, pkt);
+ /* lock alloc lock to please lock checking software.
+ * alloc_special_obtain assumes it is talking to a ub-alloc,
+ * and does not need to perform locking. Here the alloc is
+ * the only one, so we lock it here */
+ lock_quick_lock(&alloc->lock);
ret = reply_info_parse(pkt, alloc, qi, rep, region, &edns);
+ lock_quick_unlock(&alloc->lock);
if(ret != 0) {
printf("parse code %d: %s\n", ret,
ldns_lookup_by_id(ldns_rcodes, ret)->name);