break;
case errSSLWouldBlock :
- usleep(1000);
+ error = noErr; /* Force a retry */
+ usleep(1000); /* in 1 millisecond */
break;
# ifdef HAVE_SECCERTIFICATECOPYDATA
{
data = (CFDataRef)CFArrayGetValueAtIndex(dn_array, i);
- if ((credential = malloc(sizeof(*credential))))
+ if ((credential = malloc(sizeof(*credential))) != NULL)
{
credential->datalen = CFDataGetLength(data);
if ((credential->data = malloc(credential->datalen)))
pfd.events = POLLOUT;
while ((nfds = poll(&pfd, 1, http->wait_value)) < 0 &&
- (errno == EINTR || errno == EAGAIN));
+ (errno == EINTR || errno == EAGAIN))
+ /* do nothing */;
#else
do