2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Don't call UNEXPECTED_ERROR if setsockopt(SO_TIMESTAMP) returns ENOPROTOOPT.

This commit is contained in:
Brian Wellington 2000-10-12 00:35:49 +00:00
parent bb17aa91c1
commit c0150ad6aa

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.169 2000/10/07 00:16:50 bwelling Exp $ */
/* $Id: socket.c,v 1.170 2000/10/12 00:35:49 bwelling Exp $ */
#include <config.h>
@ -1262,7 +1262,8 @@ isc_socket_create(isc_socketmgr_t *manager, int pf, isc_sockettype_t type,
#if defined(SO_TIMESTAMP)
if (setsockopt(sock->fd, SOL_SOCKET, SO_TIMESTAMP,
(void *)&on, sizeof on) < 0) {
(void *)&on, sizeof on) < 0
&& errno != ENOPROTOOPT) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"setsockopt(%d, SO_TIMESTAMP) "
"failed: %s",