ret = 0;
for (ai = res; ai != NULL; ai = BIO_ADDRINFO_next(ai)) {
- /* Admitedly, these checks are quite paranoid, we should
- not get anything in the BIO_ADDRINFO chain that we haven't
- asked for */
+ /* Admittedly, these checks are quite paranoid, we should not get
+ * anything in the BIO_ADDRINFO chain that we haven't
+ * asked for. */
OPENSSL_assert((family == AF_UNSPEC || family == BIO_ADDRINFO_family(res))
&& (type == 0 || type == BIO_ADDRINFO_socktype(res)));
return 0;
}
- /* Admitedly, these checks are quite paranoid, we should
- not get anything in the BIO_ADDRINFO chain that we haven't
- asked for */
+ /* Admittedly, these checks are quite paranoid, we should not get
+ * anything in the BIO_ADDRINFO chain that we haven't asked for */
OPENSSL_assert((family == AF_UNSPEC || family == BIO_ADDRINFO_family(res))
&& (type == 0 || type == BIO_ADDRINFO_socktype(res)));
} while (sock < 0 && BIO_sock_should_retry(ret));
if (sock < 0) {
ERR_print_errors(bio_err);
- SHUTDOWN(asock);
+ BIO_closesocket(asock);
break;
}
i = (*cb)(sock, type, context);
- SHUTDOWN2(sock);
+ BIO_closesocket(sock);
} else {
i = (*cb)(asock, type, context);
}
if (naccept != -1)
naccept--;
if (i < 0 || naccept == 0) {
- SHUTDOWN2(asock);
+ BIO_closesocket(asock);
ret = i;
break;
}