diff --git a/lib/modules/Crypto.pmod/testsuite.in b/lib/modules/Crypto.pmod/testsuite.in
index 1a3d84ec49bb2d636b3ae570e9ee5d2e4212c589..91c752aacf9a49fa502121e9760ff8bdfb10493d 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 277325c92e4ff5b208c58a88e4696ba9a1c48d35..52bad5c1f3fd895ebc8aba0722c3e0574ec08e5f 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();