$NetBSD: patch-bg,v 1.1 2005/11/11 01:43:18 aolcarton Exp $

--- 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				*/
