Fix possible realloc overflow for gpgsm and uiserver engines.
[gpgme.git] / src / engine-gpgsm.c
index 8ec1598..3a83757 100644 (file)
@@ -836,7 +836,7 @@ status_handler (void *opaque, int fd)
              else
                {
                  *aline = newline;
              else
                {
                  *aline = newline;
-                 gpgsm->colon.attic.linesize += linelen + 1;
+                 gpgsm->colon.attic.linesize = *alinelen + linelen + 1;
                }
            }
          if (!err)
                }
            }
          if (!err)