$NetBSD$

--- scepd/scepd.c.orig
+++ scepd/scepd.c
@@ -140,6 +140,7 @@
 		
 	} while (bytes > 0);
 	BIO_flush(membio);
+	BIO_set_mem_eof_return(membio, 0);
 
 	/* the decode call does the following three things		*/
 	/* - verify the signed data PKCS#7				*/
