Skip to content
Snippets Groups Projects
Commit 65bea114 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Fix 6c8e4f26 for empty suffixes

parent 8e95aa19
No related branches found
No related tags found
No related merge requests found
...@@ -734,8 +734,15 @@ loop_begin: ...@@ -734,8 +734,15 @@ loop_begin:
n += isc.nrdns[i].bv_len; n += isc.nrdns[i].bv_len;
*n++ = ','; *n++ = ',';
} }
memcpy(d, pdn.bv_val, pdn.bv_len+1); if (pdn.bv_len) {
memcpy(n, pndn.bv_val, pndn.bv_len+1); memcpy(d, pdn.bv_val, pdn.bv_len+1);
memcpy(n, pndn.bv_val, pndn.bv_len+1);
} else {
*--d = '\0';
*--n = '\0';
e->e_name.bv_len--;
e->e_nname.bv_len--;
}
if (isc.nscope != 1) { if (isc.nscope != 1) {
op->o_tmpfree(pndn.bv_val, op->o_tmpmemctx); op->o_tmpfree(pndn.bv_val, op->o_tmpmemctx);
op->o_tmpfree(pdn.bv_val, op->o_tmpmemctx); op->o_tmpfree(pdn.bv_val, op->o_tmpmemctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment