diff --git a/agent/divert-scd.c b/agent/divert-scd.c
index b85b490c1..ad9b9ee2f 100644
--- a/agent/divert-scd.c
+++ b/agent/divert-scd.c
@@ -276,7 +276,7 @@ getpin_cb (void *opaque, const char *desc_text, const char *info,
         }
       else if (maxbuf == 1)  /* Open the pinentry. */
         {
-          if (info)
+          if (info && strcmp (info, "--ack") != 0)
             {
               char *desc, *desc2;