ffmpeg | branch: master | Martin Storsjö <mar...@martin.st> | Thu May 28 11:39:45 2015 +0300| [8016a1bd3b60e917e1b12748dd80c06c3462c286] | committer: Martin Storsjö
rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_key Signed-off-by: Martin Storsjö <mar...@martin.st> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8016a1bd3b60e917e1b12748dd80c06c3462c286 --- libavformat/rtmpdh.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavformat/rtmpdh.c b/libavformat/rtmpdh.c index c29b563..b73d987 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) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog