aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-05-28 11:39:45 +0300
committerMartin Storsjö <martin@martin.st>2015-05-29 09:42:38 +0300
commit8016a1bd3b60e917e1b12748dd80c06c3462c286 (patch)
tree1ff2fb901da531aa440984430576abc6ca21337b
parent063f7467e4d14ab7fe01b2845dab60cc75df8b53 (diff)
downloadffmpeg-8016a1bd3b60e917e1b12748dd80c06c3462c286.tar.gz
rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/rtmpdh.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavformat/rtmpdh.c b/libavformat/rtmpdh.c
index c29b563d72..b73d9875c5 100644
--- a/libavformat/rtmpdh.c
+++ b/libavformat/rtmpdh.c
@@ -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)