Skip to Content.
Sympa Menu

freetds - RE: [freetds] Login incorrect

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Login incorrect
  • Date: Tue, 15 Jul 2003 14:04:54 -0400

> From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> Sent: July 15, 2003 1:03 PM
>
> Sending packet @ 15:32:49.712202
> 0000 10 01 00 ba 00 00 01 00-be 00 00 00 00 00 00 70
> |........ .......p|
>
> 0xbe is length but packet is 0xba, some data not sended

That's not good. :-(

> >From login.c
> if (!domain_login) {
> tds_put_string(tds,
> tds_dstr_cstr(&connect_info->user_name),
> user_name_len);
> p = tds_dstr_cstr(&connect_info->password);
> punicode = unicode_string;
> unicode_left = sizeof(unicode_string);
> assert(-1 != tds_iconv(tds, tds->iconv_info,
> to_server, &p,
> &password_len, &punicode, &unicode_left));
>
> !!! bad assert, is disabled behavior change !!!

I get it I get I get it. Good spot, Freddy!

John, when you --disable-debug, the assert(3) macro becomes a no-op.
Consequently, the call to tds_iconv() is never made! (It's removed by the
preprocessor.) Oh, boy. My bad.

I will fix this ASAP. Thanks for you patient help, John.

--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page