diff options
author | Martin Storsjö <martin@martin.st> | 2015-05-28 09:47:44 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-05-29 09:42:24 +0300 |
commit | 78efc69e7c990226f4b913721ef1b308ca5bfa04 (patch) | |
tree | 2090269271266ea93a373db0a80b74cc7964a9bf /libavformat/rtmpdh.c | |
parent | a64a5773ea5f7337cd1d87cfdf511914d317fe81 (diff) | |
download | ffmpeg-78efc69e7c990226f4b913721ef1b308ca5bfa04.tar.gz |
rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bn
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmpdh.c')
-rw-r--r-- | libavformat/rtmpdh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtmpdh.c b/libavformat/rtmpdh.c index 38c2f3df63..ddb2a46697 100644 --- a/libavformat/rtmpdh.c +++ b/libavformat/rtmpdh.c @@ -77,6 +77,8 @@ bn_new(bn); \ if (bn) \ ret = (mpz_set_str(bn, buf, 16) == 0); \ + else \ + ret = 1; \ } while (0) #define bn_modexp(bn, y, q, p) mpz_powm(bn, y, q, p) #define bn_random(bn, num_bytes) \ |