gpg: Fix just changed agent_get_s2k_count.
authorWerner Koch <wk@gnupg.org>
Sat, 26 Jan 2019 22:17:54 +0000 (23:17 +0100)
committerWerner Koch <wk@gnupg.org>
Sat, 26 Jan 2019 22:17:54 +0000 (23:17 +0100)
* g10/call-agent.c (agent_get_s2k_count): Actually return the count.
--

The previous push was definitely a bit to hasty.
Fixes-Commit: ec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/call-agent.c

index 91af2be..8377753 100644 (file)
@@ -1502,10 +1502,10 @@ agent_get_s2k_count (void)
         log_error (_("problem with the agent: %s\n"), gpg_strerror (err));
 
       /* Default to 65536 which was used up to 2.0.13.  */
-      return 65536;
+      count = 65536;
     }
 
-  return err;
+  return count;
 }