=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.262 retrieving revision 1.263 diff -u -r1.262 -r1.263 --- src/usr.bin/ssh/packet.c 2017/06/24 06:38:11 1.262 +++ src/usr.bin/ssh/packet.c 2017/07/23 23:37:02 1.263 @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.262 2017/06/24 06:38:11 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.263 2017/07/23 23:37:02 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1982,7 +1982,7 @@ void ssh_packet_set_tos(struct ssh *ssh, int tos) { - if (!ssh_packet_connection_is_on_socket(ssh)) + if (!ssh_packet_connection_is_on_socket(ssh) || tos == INT_MAX) return; switch (ssh_packet_connection_af(ssh)) { case AF_INET: