summaryrefslogtreecommitdiff
path: root/lib/libcrypto/crypto/arc4random_hpux.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/crypto/arc4random_hpux.h')
-rw-r--r--lib/libcrypto/crypto/arc4random_hpux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/crypto/arc4random_hpux.h b/lib/libcrypto/crypto/arc4random_hpux.h
index 5081d9722f2..2a3fe8c6114 100644
--- a/lib/libcrypto/crypto/arc4random_hpux.h
+++ b/lib/libcrypto/crypto/arc4random_hpux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc4random_hpux.h,v 1.2 2015/01/15 06:57:18 deraadt Exp $ */
+/* $OpenBSD: arc4random_hpux.h,v 1.3 2016/06/30 12:19:51 bcook Exp $ */
/*
* Copyright (c) 1996, David Mazieres <dm@uun.org>
@@ -72,6 +72,7 @@ _rs_allocate(struct _rs **rsp, struct _rsx **rsxp)
if ((*rsxp = mmap(NULL, sizeof(**rsxp), PROT_READ|PROT_WRITE,
MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED) {
munmap(*rsp, sizeof(**rsp));
+ *rsp = NULL;
return (-1);
}