diff common-channel.c @ 332:6f90e5fd42cc

fix accidentally changed == vs != operators
author Matt Johnston <matt@ucc.asn.au>
date Sun, 11 Jun 2006 16:37:46 +0000
parents d6b8815a9b5e
children 78518751cb82 59c7938af2bd
line wrap: on
line diff
--- a/common-channel.c	Sun Jun 11 16:19:32 2006 +0000
+++ b/common-channel.c	Sun Jun 11 16:37:46 2006 +0000
@@ -273,14 +273,14 @@
 
 	if (!channel->senteof
 		&& channel->readfd == FD_CLOSED 
-		&& (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) {
+		&& (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) {
 		send_msg_channel_eof(channel);
 	}
 
 	if (!channel->sentclosed
 		&& channel->writefd == FD_CLOSED
 		&& channel->readfd == FD_CLOSED
-		&& (channel->extrabuf == NULL || channel->errfd == FD_CLOSED)) {
+		&& (channel->extrabuf != NULL || channel->errfd == FD_CLOSED)) {
 		send_msg_channel_close(channel);
 	}