]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authordtucker@openbsd.org <dtucker@openbsd.org>
Fri, 6 Jan 2017 02:26:10 +0000 (02:26 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 30 Jan 2017 00:08:36 +0000 (11:08 +1100)
Account for timeouts in the integrity tests as failures.

If the first test in a series for a given MAC happens to modify the low
bytes of a packet length, then ssh will time out and this will be
interpreted as a test failure.  Patch from cjwatson at debian.org via
bz#2658.

Upstream-Regress-ID: e7467613b0badedaa300bc6fc7495ec2f44e2fb9

regress/integrity.sh

index 39d310deb09b75803e19ceaf2814ed52858e72cd..1df2924f5f09d0756013a6b3b07364a623091d3f 100644 (file)
@@ -1,12 +1,10 @@
-#      $OpenBSD: integrity.sh,v 1.19 2016/11/25 02:56:49 dtucker Exp $
+#      $OpenBSD: integrity.sh,v 1.20 2017/01/06 02:26:10 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="integrity"
 cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
 
 # start at byte 2900 (i.e. after kex) and corrupt at different offsets
-# XXX the test hangs if we modify the low bytes of the packet length
-# XXX and ssh tries to read...
 tries=10
 startoffset=2900
 macs=`${SSH} -Q mac`
@@ -27,6 +25,7 @@ for m in $macs; do
        elen=0
        epad=0
        emac=0
+       etmo=0
        ecnt=0
        skip=0
        for off in `jot $tries $startoffset`; do