From 0e235b9df7e96e285f97a92198244dcb95ded972 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Sun, 9 Jun 2013 02:26:25 +0200 Subject: [PATCH] This should be apply, not safe_apply. --- lib/modules/Crypto.pmod/testsuite.in | 2 +- src/post_modules/Nettle/hash.cmod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/Crypto.pmod/testsuite.in b/lib/modules/Crypto.pmod/testsuite.in index 1a3d84ec49..91c752aacf 100644 --- a/lib/modules/Crypto.pmod/testsuite.in +++ b/lib/modules/Crypto.pmod/testsuite.in @@ -196,7 +196,7 @@ cond_resolv( Nettle.MD5_Info, [[ "acbd18db4cc2f85cedef654fccc4a4d8") test_eval_error(Crypto.MD5.hash(Image.Image(5,5))) - dnl test_eval_error(Crypto.MD5.hash(Stdio.File())) + test_eval_error(Crypto.MD5.hash(Stdio.File())) test_eval_error(Crypto.MD5.hash(Stdio.File("/dev/null"))) ]]) diff --git a/src/post_modules/Nettle/hash.cmod b/src/post_modules/Nettle/hash.cmod index 277325c92e..52bad5c1f3 100644 --- a/src/post_modules/Nettle/hash.cmod +++ b/src/post_modules/Nettle/hash.cmod @@ -188,7 +188,7 @@ PIKECLASS HashInfo if (!is_stdio_file(in)) Pike_error("Object not Fd or Fd_ref, or subclass.\n"); - safe_apply(in, "query_fd", 0); + apply(in, "query_fd", 0); fd = Pike_sp[-1].u.integer; pop_stack(); -- GitLab