aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-21 10:19:07 +0000
committerJustus Winter <[email protected]>2016-06-21 14:18:32 +0000
commit616582071a2c76c4fb529d4da549aa95ee5d78d6 (patch)
tree085f2f5d637e440c20750261c64c0c3dc3f8bb8d
parentsm: Do not install cacert and other root certificates. (diff)
downloadgnupg-616582071a2c76c4fb529d4da549aa95ee5d78d6.tar.gz
gnupg-616582071a2c76c4fb529d4da549aa95ee5d78d6.zip
gpgscm: Make memory allocation failures fatal.
* tests/gpgscm/scheme.c (Eval_Cycle): Exit if we run out of memory. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--tests/gpgscm/scheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index ff595fa6a..22b726fef 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -4529,7 +4529,7 @@ static void Eval_Cycle(scheme *sc, enum scheme_opcodes op) {
}
if(sc->no_memory) {
fprintf(stderr,"No memory!\n");
- return;
+ exit(1);
}
}
}