Commit 8016a1bd authored by Martin Storsjö's avatar Martin Storsjö

rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 063f7467
......@@ -137,11 +137,6 @@ static int dh_compute_key(FF_DH *dh, FFBigNum pub_key_bn,
uint32_t secret_key_len, uint8_t *secret_key)
{
FFBigNum k;
int num_bytes;
num_bytes = bn_num_bytes(dh->p);
if (num_bytes <= 0 || num_bytes > MAX_BYTES)
return -1;
bn_new(k);
if (!k)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment