Commit 78efc69e authored by Martin Storsjö's avatar Martin Storsjö

rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bn

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent a64a5773
...@@ -77,6 +77,8 @@ ...@@ -77,6 +77,8 @@
bn_new(bn); \ bn_new(bn); \
if (bn) \ if (bn) \
ret = (mpz_set_str(bn, buf, 16) == 0); \ ret = (mpz_set_str(bn, buf, 16) == 0); \
else \
ret = 1; \
} while (0) } while (0)
#define bn_modexp(bn, y, q, p) mpz_powm(bn, y, q, p) #define bn_modexp(bn, y, q, p) mpz_powm(bn, y, q, p)
#define bn_random(bn, num_bytes) \ #define bn_random(bn, num_bytes) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment