aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/mainproc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index e675e853a..08986a070 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -381,7 +381,10 @@ proc_symkey_enc (CTX c, PACKET *pkt)
}
}
else
- log_error (_("encrypted with unknown algorithm %d.%s\n"), algo, a);
+ {
+ log_error (_("encrypted with unknown algorithm %d.%s\n"), algo, a);
+ s = NULL; /* Force a goto leave. */
+ }
if (openpgp_md_test_algo (enc->s2k.hash_algo))
{