]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2005/07/08 09:41:33
authordtucker <dtucker>
Thu, 14 Jul 2005 07:05:51 +0000 (07:05 +0000)
committerdtucker <dtucker>
Thu, 14 Jul 2005 07:05:51 +0000 (07:05 +0000)
     [channels.h]
     race when efd gets closed while there is still buffered data:
     change CHANNEL_EFD_OUTPUT_ACTIVE()
        1) c->efd must always be valid AND
        2a) no EOF has been seen OR
        2b) there is buffered data
     report, initial fix and testing Chuck Cranor

ChangeLog
channels.h

index c6f01e73d130550cabf723da053ec865bfd69483..a60ed7fcd449ef1512cffcec190c27f37326287d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,14 @@
    - dtucker@cvs.openbsd.org 2005/07/08 09:26:18
      [misc.c]
      Make comment match code; ok djm@
+   - markus@cvs.openbsd.org 2005/07/08 09:41:33
+     [channels.h]
+     race when efd gets closed while there is still buffered data:
+     change CHANNEL_EFD_OUTPUT_ACTIVE()
+        1) c->efd must always be valid AND
+        2a) no EOF has been seen OR
+        2b) there is buffered data
+     report, initial fix and testing Chuck Cranor
 
 20050707
  - dtucker [auth-krb5.c auth.h gss-serv-krb5.c] Move KRB5CCNAME generation for
index f87db6afbac0015e610a2c569b612106b4f09750..b89b7c95dc5b94116415fee7bfc3981b0209c7b0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: channels.h,v 1.77 2005/06/16 03:38:36 djm Exp $       */
+/*     $OpenBSD: channels.h,v 1.78 2005/07/08 09:41:33 markus Exp $    */
 
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -149,7 +149,7 @@ struct Channel {
        buffer_len(&c->extended) > 0))
 #define CHANNEL_EFD_OUTPUT_ACTIVE(c) \
        (compat20 && c->extended_usage == CHAN_EXTENDED_WRITE && \
-       ((c->efd != -1 && !(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD))) || \
+       c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
        buffer_len(&c->extended) > 0))
 
 /* channel management */
This page took 0.045059 seconds and 5 git commands to generate.