c-sharp-Dns-Server icon indicating copy to clipboard operation
c-sharp-Dns-Server copied to clipboard

Issue with serializeLabel method

Open sandytechno1 opened this issue 7 years ago • 0 comments

There is no null handing for "full" parameter

private string serializeLabel(out int length, string question, out string rest, string full = "")

if (currentBit == "C0") in above condition if full parameter is null it throws exception on below line, string data = full.Substring(offset);

What is current bit and what are all these conditions if you have any documentation around it please do share.

sandytechno1 avatar Oct 13 '18 18:10 sandytechno1