diff options
Diffstat (limited to 'crypto/des/enc_writ.c')
-rw-r--r-- | crypto/des/enc_writ.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c index b4eecc3812..0777b4f139 100644 --- a/crypto/des/enc_writ.c +++ b/crypto/des/enc_writ.c @@ -132,7 +132,9 @@ int DES_enc_write(int fd, const void *_buf, int len, if (len < 8) { cp = shortbuf; memcpy(shortbuf, buf, len); - RAND_pseudo_bytes(shortbuf + len, 8 - len); + if(RAND_pseudo_bytes(shortbuf + len, 8 - len) < 0) { + return -1; + } rnum = 8; } else { cp = buf; |