]> git.sesse.net Git - ffmpeg/commitdiff
rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bn
authorMartin Storsjö <martin@martin.st>
Thu, 28 May 2015 06:47:44 +0000 (09:47 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 29 May 2015 06:42:24 +0000 (09:42 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpdh.c

index 38c2f3df630fa1c3fff81b218992e650ea703195..ddb2a46697191d2056aae3bf15fa0a3fda52a275 100644 (file)
@@ -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)                    \