mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
063f7467e4
commit
8016a1bd3b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user