Re: incorrect fix in net.c
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
2009/4/4 James K. Lowden <[email protected]>: > --- 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. > > 0 case is already handled, 0 case is tested by "0 == nput" so only < 0 is left (where sock_errno is valid) freddy77 _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds