pkgsrc/security/pgp5/patches/patch-ba
mjl 88c5d3a87e Correct man page xrefs pgp(1) -> pgp5(1).
Import some patches (via FreeBSD), one of them concerning weak rnd number
generation.
2002-08-25 15:18:41 +00:00

13 lines
423 B
Text

$NetBSD: patch-ba,v 1.1 2002/08/25 15:18:42 mjl Exp $
--- lib/ttyui/pgpUserIO.c.orig Sun Aug 25 16:19:00 2002
+++ lib/ttyui/pgpUserIO.c Sun Aug 25 16:19:17 2002
@@ -1321,7 +1321,7 @@
pgpAssert(fd >= 0);
for(i = 0; i <= count; ++i) {
- RandBuf = read(fd, &RandBuf, count);
+ read(fd, &RandBuf, count);
pgpRandomAddBytes(&pgpRandomPool, (byte *)&RandBuf, sizeof(RandBuf));
pgpRandPoolAddEntropy(256);
}