[freetds] incorrect fix in net.c

James K. Lowden jklowden at schemamania.org
Sat Apr 4 13:47:14 EDT 2009


--- src/tds/net.c       16 Mar 2009 07:49:57 -0000      1.90
+++ src/tds/net.c       27 Mar 2009 09:22:49 -0000      1.91
@@ -700,7 +700,7 @@
  	   continue;
   }
   
-  if (0 == nput || nput < 0 && sock_errno == EAGAIN)
+  if (0 == nput || sock_errno == EAGAIN)
  	   continue;
 

The above change is incorrect.  sock_errno has no meaning unless
send/write returns -1. 

--jkl




More information about the FreeTDS mailing list