]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authordjm@openbsd.org <djm@openbsd.org>
Tue, 30 Jun 2015 05:23:25 +0000 (05:23 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 30 Jun 2015 06:12:20 +0000 (16:12 +1000)
Fix math error in remote window calculations that causes
 eventual stalls for datagram channels. Reported by Georg Wicherski, ok
 markus@

Upstream-ID: be54059d11bf64e0d85061f7257f53067842e2ab

channels.c

index 45e1f9fcc7249c655ea84490d10417ecabec87ff..8069cf1f989e2ef73725a8f1134dc15886006885 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.344 2015/06/05 15:13:13 millert Exp $ */
+/* $OpenBSD: channels.c,v 1.345 2015/06/30 05:23:25 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2270,7 +2270,7 @@ channel_output_poll(void)
                                        packet_put_int(c->remote_id);
                                        packet_put_string(data, dlen);
                                        packet_send();
-                                       c->remote_window -= dlen + 4;
+                                       c->remote_window -= dlen;
                                        free(data);
                                }
                                continue;