@@ -1701,10 +1701,10 @@ int sock_discard(PCAP_SOCKET sock, SSL *ssl, int size, char *errbuf,
17011701 *
17021702 * This function is useful after an accept() call in order to check if the connecting
17031703 * host is allowed to connect to me. To do that, we have a buffer that keeps the list of the
1704- * allowed host ; this function checks the sockaddr_storage structure of the connecting host
1704+ * allowed hosts ; this function checks the sockaddr_storage structure of the connecting host
17051705 * against this host list, and it returns '0' is the host is included in this list.
17061706 *
1707- * \param hostlist: pointer to a string that contains the list of the allowed host .
1707+ * \param hostlist: pointer to a string that contains the list of the allowed hosts .
17081708 *
17091709 * \param sep: a string that keeps the separators used between the hosts (for example the
17101710 * space character) in the host list.
@@ -1715,14 +1715,14 @@ int sock_discard(PCAP_SOCKET sock, SSL *ssl, int size, char *errbuf,
17151715 * error message. This buffer has to be at least 'errbuflen' in length.
17161716 * It can be NULL; in this case the error cannot be printed.
17171717 *
1718- * \param errbuflen: length of the buffer that will contains the error. The error message cannot be
1718+ * \param errbuflen: length of the buffer that will contain the error. The error message cannot be
17191719 * larger than 'errbuflen - 1' because the last char is reserved for the string terminator.
17201720 *
17211721 * \return It returns:
17221722 * - '1' if the host list is empty
17231723 * - '0' if the host belongs to the host list (and therefore it is allowed to connect)
1724- * - '-1' in case the host does not belong to the host list (and therefore it is not allowed to connect
1725- * - '-2' in case or error. The error message is returned in the 'errbuf' variable.
1724+ * - '-1' in case the host does not belong to the host list (and therefore it is not allowed to connect)
1725+ * - '-2' in case of error. The error message is returned in the 'errbuf' variable.
17261726 */
17271727int sock_check_hostlist (const char * hostlist , const char * sep , struct sockaddr_storage * from , char * errbuf , int errbuflen )
17281728{
0 commit comments