From 74944330ba7229ed0cbe23cc0f573962a444bd07 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Wed, 6 May 2015 14:50:38 +0200 Subject: [PATCH] agent: Or in the value; don't overwrite the variable. * agent/call-pinentry.c (pinentry_status_cb): Or in PINENTRY_STATUS_CLOSE_BUTTON; don't overwrite *FLAG. -- Signed-off-by: Neal H. Walfield --- agent/call-pinentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c index d24a75978..925386637 100644 --- a/agent/call-pinentry.c +++ b/agent/call-pinentry.c @@ -727,7 +727,7 @@ pinentry_status_cb (void *opaque, const char *line) if ((args = has_leading_keyword (line, "BUTTON_INFO"))) { if (!strcmp (args, "close")) - *flag = PINENTRY_STATUS_CLOSE_BUTTON; + *flag |= PINENTRY_STATUS_CLOSE_BUTTON; } else if (has_leading_keyword (line, "PIN_REPEATED")) {