summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/roken/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/roken/socket.c')
-rw-r--r--crypto/heimdal/lib/roken/socket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/heimdal/lib/roken/socket.c b/crypto/heimdal/lib/roken/socket.c
index ad124fd..bd67013 100644
--- a/crypto/heimdal/lib/roken/socket.c
+++ b/crypto/heimdal/lib/roken/socket.c
@@ -33,7 +33,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: socket.c,v 1.7 2001/09/03 12:04:23 joda Exp $");
+RCSID("$Id: socket.c,v 1.8 2003/04/15 03:26:51 lha Exp $");
#endif
#include <roken.h>
@@ -270,7 +270,8 @@ socket_set_tos (int sock, int tos)
{
#if defined(IP_TOS) && defined(HAVE_SETSOCKOPT)
if (setsockopt (sock, IPPROTO_IP, IP_TOS, (void *) &tos, sizeof (int)) < 0)
- warn ("setsockopt TOS (ignored)");
+ if (errno != EINVAL)
+ warn ("setsockopt TOS (ignored)");
#endif
}
OpenPOWER on IntegriCloud