[freetds] force security by sql server
Pawel
pzlist at mp.pl
Mon Sep 28 11:39:22 EDT 2009
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
More information about the FreeTDS
mailing list