Skip to Content.
Sympa Menu

freetds - Re: [freetds] force security by sql server

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Pawel <pzlist AT mp.pl>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] force security by sql server
  • Date: Mon, 28 Sep 2009 17:39:22 +0200

Frediano Ziglio wrote:
2009/9/18 Pawel <pzlist AT mp.pl>:
Frediano Ziglio wrote:

<CIACH>
I found the problem. Here you are the patch (already in CVS HEAD and
post 0.82 patch at freetds.sf.net):

Index: src/tds/login.c
===================================================================
RCS file: /cvs/freetds/freetds/src/tds/login.c,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -r1.188 -r1.189
--- src/tds/login.c 25 Aug 2009 14:25:35 -0000 1.188
+++ src/tds/login.c 28 Sep 2009 14:07:04 -0000 1.189
@@ -976,6 +976,13 @@
assert(start_pos >= 21 && start_pos <= sizeof(buf));
assert(buf[start_pos-1] == 0xff);

+ /*
+ * fix a problem with mssql2k which doesn't like
+ * packet splitted during SSL handshake
+ */
+ if (tds->env.block_size < 4096)
+ tds_realloc_socket(tds, 4096);
+
/* do prelogin */
tds->out_flag = TDS8_PRELOGIN;


It seems that mssql2k doesn't like splitted packet :(

freddy77
It works !
Thanks a lot for fast fix

Pawel Z




Archive powered by MHonArc 2.6.24.

Top of Page