summaryrefslogtreecommitdiffstats
path: root/crypto/ppccpuid.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-01-24 14:54:24 +0000
committerAndy Polyakov <appro@openssl.org>2010-01-24 14:54:24 +0000
commit7676eebf4297c8ccb27a6517eb8529cbd187f17a (patch)
tree8668e00dc37bdb3b027f34331e810578aaf7d02c /crypto/ppccpuid.pl
parent21a5c040e5398b7d4ec374168815f88c94a102d6 (diff)
OPENSSL_cleanse to accept zero length parameter [matching C implementation].
Diffstat (limited to 'crypto/ppccpuid.pl')
-rwxr-xr-xcrypto/ppccpuid.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ppccpuid.pl b/crypto/ppccpuid.pl
index a52a8b38d0..7e8d233b72 100755
--- a/crypto/ppccpuid.pl
+++ b/crypto/ppccpuid.pl
@@ -83,6 +83,8 @@ Loop: lwarx r5,0,r3
$CMPLI r4,7
li r0,0
bge Lot
+ $CMPLI r4,0
+ beqlr-
Little: mtctr r4
stb r0,0(r3)
addi r3,r3,1