#
#
# patch "bn_mp_mul_d.c"
#  from [fe7fe17b0dc44d3f3c6ab78998691e412280255e]
#    to [684e50bde0381306076b4b64d2ecbab99b7af195]
#
============================================================
--- bn_mp_mul_d.c	fe7fe17b0dc44d3f3c6ab78998691e412280255e
+++ bn_mp_mul_d.c	684e50bde0381306076b4b64d2ecbab99b7af195
@@ -57,8 +57,9 @@ mp_mul_d (mp_int * a, mp_digit b, mp_int
     u       = (mp_digit) (r >> ((mp_word) DIGIT_BIT));
   }
 
-  /* store final carry [if any] */
+  /* store final carry [if any] and increment ix offset  */
   *tmpc++ = u;
+  ++ix;
 
   /* now zero digits above the top */
   while (ix++ < olduse) {
