diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.262 2017/06/24 06:38:11 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.263 2017/07/23 23:37:02 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1997,7 +1997,7 @@ void | |||
1997 | ssh_packet_set_tos(struct ssh *ssh, int tos) | 1997 | ssh_packet_set_tos(struct ssh *ssh, int tos) |
1998 | { | 1998 | { |
1999 | #ifndef IP_TOS_IS_BROKEN | 1999 | #ifndef IP_TOS_IS_BROKEN |
2000 | if (!ssh_packet_connection_is_on_socket(ssh)) | 2000 | if (!ssh_packet_connection_is_on_socket(ssh) || tos == INT_MAX) |
2001 | return; | 2001 | return; |
2002 | switch (ssh_packet_connection_af(ssh)) { | 2002 | switch (ssh_packet_connection_af(ssh)) { |
2003 | # ifdef IP_TOS | 2003 | # ifdef IP_TOS |