Crypt module does not detect failures from DH_compute_key #801

Closed
opened 2026-10-05 04:45:25 +02:00 by adam · 0 comments
Owner

Ref: https://github.com/znc/znc/pull/1439#issuecomment-348730756

Basically, DH_compute_key returns an int (according to its man page), but the code in crypt.cpp first casts this to unsigned long and then checks if the result is -1.

Ref: https://github.com/znc/znc/pull/1439#issuecomment-348730756 Basically, `DH_compute_key` returns an `int` (according to its man page), but the code in `crypt.cpp` first casts this to `unsigned long` and then checks if the result is -1. <!-- github-sync-id:278788660 -->
adam closed this issue 2026-10-05 04:45:25 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#801