Fix memory accounting bug in TLSDNS

Evan Hunt requested to merge 2581-oldsize-assertion into main

after a partial write, it was possible to attempt to free only part of a socket's senddata buffer.

Closes #2581 (closed)

Edited by Evan Hunt

Merge request reports