Skip to content
Snippets Groups Projects
Commit 74151247 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Alexandre Lision
Browse files

security: fix crashes during DH generation

When DH parameters are generated an error can occures
and an empty (default constructed) DH params instance
is returned.
This causes a crashes into ring account code that not
handles such case.

This patch fixes this issue by adding operator bool()
method to DH params and checking if not false when
trying to save them.

Note: If no DH params are generated, the empty instance
is given up to the TlsSession object.
Check if your cipher suite could handle empty DH params!

Change-Id: I98c9c0317f4b8cb107ea0bca5f94b69321cbba76
Tuleap: #792
parent 90eea3b4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment