mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-30 21:42:48 -08:00
The err check after writeHeaderValueBlock in payload could never fire. It tested the error from zlib.NewWriterLevelDict, which payload already checks, and writeHeaderValueBlock calls t.Fatalf itself on a write error. The nilness analyser in go vet flags it as an impossible condition. Remove the len(headerM) guard too, because payload returns early when headerM is empty, and check the error from w.Flush, which was ignored. Updates #22652 Change-Id: I23ec131d88a599b37364706dd2226f1456574461 Signed-off-by: David Bond <[email protected]>