提交 f7c798e3 编写于 作者: R Rich Salz 提交者: Rich Salz

Fix typo, reformat comment.

Reviewed-by: NAndy Polyakov <appro@openssl.org>
上级 2cf28d61
...@@ -167,9 +167,9 @@ int init_client(int *sock, const char *host, const char *port, ...@@ -167,9 +167,9 @@ int init_client(int *sock, const char *host, const char *port,
ret = 0; ret = 0;
for (ai = res; ai != NULL; ai = BIO_ADDRINFO_next(ai)) { for (ai = res; ai != NULL; ai = BIO_ADDRINFO_next(ai)) {
/* Admitedly, these checks are quite paranoid, we should /* Admittedly, these checks are quite paranoid, we should not get
not get anything in the BIO_ADDRINFO chain that we haven't * anything in the BIO_ADDRINFO chain that we haven't
asked for */ * asked for. */
OPENSSL_assert((family == AF_UNSPEC || family == BIO_ADDRINFO_family(res)) OPENSSL_assert((family == AF_UNSPEC || family == BIO_ADDRINFO_family(res))
&& (type == 0 || type == BIO_ADDRINFO_socktype(res))); && (type == 0 || type == BIO_ADDRINFO_socktype(res)));
...@@ -238,9 +238,8 @@ int do_server(int *accept_sock, const char *host, const char *port, ...@@ -238,9 +238,8 @@ int do_server(int *accept_sock, const char *host, const char *port,
return 0; return 0;
} }
/* Admitedly, these checks are quite paranoid, we should /* Admittedly, these checks are quite paranoid, we should not get
not get anything in the BIO_ADDRINFO chain that we haven't * anything in the BIO_ADDRINFO chain that we haven't asked for */
asked for */
OPENSSL_assert((family == AF_UNSPEC || family == BIO_ADDRINFO_family(res)) OPENSSL_assert((family == AF_UNSPEC || family == BIO_ADDRINFO_family(res))
&& (type == 0 || type == BIO_ADDRINFO_socktype(res))); && (type == 0 || type == BIO_ADDRINFO_socktype(res)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册