Skip to content

Snclient off by one nrpe#368

Merged
sni merged 7 commits intoConSol-Monitoring:mainfrom
egonrassi:snclient-off-by-one-nrpe
Apr 16, 2026
Merged

Snclient off by one nrpe#368
sni merged 7 commits intoConSol-Monitoring:mainfrom
egonrassi:snclient-off-by-one-nrpe

Conversation

@egonrassi
Copy link
Copy Markdown
Contributor

No description provided.

Update check_swap_io.go - typo for entry
When the packet data is too long, statusLine is truncated to exactly NrpeV4MaxPacketDataLength bytes and dataLength loses the +1 for the null terminator. 
  ...this overwrites the last character of the data instead of appending after it. The fix: truncate to NrpeV4MaxPacketDataLength - 1 bytes.
@sni
Copy link
Copy Markdown
Contributor

sni commented Apr 16, 2026

thanks, could you apply the gofmt by running "make fmt". This should make the tests go green.

@sni sni merged commit 79aa0d9 into ConSol-Monitoring:main Apr 16, 2026
68 checks passed
@sni
Copy link
Copy Markdown
Contributor

sni commented Apr 16, 2026

thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants