OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063f746
)
rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key
author
Martin Storsjö
<martin@martin.st>
Thu, 28 May 2015 08:39:45 +0000
(11:39 +0300)
committer
Martin Storsjö
<martin@martin.st>
Fri, 29 May 2015 06:42:38 +0000
(09:42 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpdh.c
patch
|
blob
|
history
diff --git
a/libavformat/rtmpdh.c
b/libavformat/rtmpdh.c
index
c29b563
..
b73d987
100644
(file)
--- 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)