Commit Graph

1 Commits

Author SHA1 Message Date
Sebastien Tardif 50e64f7e78 fix: prevent nil pointer panic in webhook sendLog
Add missing return statements after error checks in sendLog. When
json.Marshal or http.NewRequest fails, the error is logged but
execution continues. If http.NewRequest returns a nil *Request,
the subsequent req.Header.Set call panics with a nil pointer
dereference.

This bug was introduced in PR #129 (2023-07-14) and has been
present for nearly 3 years.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
2026-06-08 18:45:53 -07:00