Skip to Content.
Sympa Menu

freetds - Re: [freetds] Issue connecting to SQL Server from Linux Hostwithnewerversions of FreeTDS...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Issue connecting to SQL Server from Linux Hostwithnewerversions of FreeTDS...
  • Date: Tue, 28 Nov 2006 10:20:23 -0500

On Nov 28, 9:20am, Glenn AT addsys.com ("Glenn, Chris") wrote:
-- Subject: Re: [freetds] Issue connecting to SQL Server from Linux Hostwithn

| If you can tell me specifically where in the net.c source this line
| should be added, I can try it right away.
|
| Thanks-
| Chris Glenn

This is a patch for my version of net.c

christos

Index: net.c
===================================================================
RCS file: /src/twosigma/cvsroot/external/public/freetds/src/tds/net.c,v
retrieving revision 1.1.1.3
diff -u -u -r1.1.1.3 net.c
--- net.c 24 Apr 2006 21:10:42 -0000 1.1.1.3
+++ net.c 28 Nov 2006 15:19:10 -0000
@@ -154,6 +154,7 @@
socklen_t optlen;
#endif

+ (void)memset(&sin, 0, sizeof(sin));
FD_ZERO(&fds);

sin.sin_addr.s_addr = inet_addr(ip_addr);
@@ -723,6 +724,7 @@
size_t msg_len;
int port = 0;

+ (void)memset(&sin, 0, sizeof(sin));
sin.sin_addr.s_addr = inet_addr(ip_addr);
if (sin.sin_addr.s_addr == INADDR_NONE) {
tdsdump_log(TDS_DBG_ERROR, "inet_addr() failed, IP = %s\n",
ip_addr);




Archive powered by MHonArc 2.6.24.

Top of Page