ndb/dns: use correct attribute when serializing caa record in ndb format

This commit is contained in:
cinap_lenrek 2021-11-01 15:12:17 +00:00
parent 5e3ded2242
commit 3cd87bc3fb

View file

@ -1451,9 +1451,9 @@ rravfmt(Fmt *f)
break;
case Tcaa:
if (rp->caa == nil)
fmtprint(&fstr, " flags=<null> tag=<null> value=<null>");
fmtprint(&fstr, " flags=<null> tag=<null> caa=<null>");
else
fmtprint(&fstr, " flags=%d tag=%s value=%.*s",
fmtprint(&fstr, " flags=%d tag=%s caa=\"%.*s\"",
rp->caa->flags, dnname(rp->caa->tag),
rp->caa->dlen, (char*)rp->caa->data);
break;