提交 0089a9df 编写于 作者: D Dr. Stephen Henson

Fix from 1.0.0-stable

上级 a5910673
...@@ -176,7 +176,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, ...@@ -176,7 +176,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
net_num=0; net_num=0;
while (net_num < rnum) while (net_num < rnum)
{ {
#ifndef OPENSSL_SYS_WIN32
i=read(fd,(void *)&(net[net_num]),rnum-net_num); i=read(fd,(void *)&(net[net_num]),rnum-net_num);
#else
i=_read(fd,(void *)&(net[net_num]),rnum-net_num);
#endif
#ifdef EINTR #ifdef EINTR
if ((i == -1) && (errno == EINTR)) continue; if ((i == -1) && (errno == EINTR)) continue;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册