Skip to content

Commit

Permalink
server: Fix tds_send_login_ack product name length
Browse files Browse the repository at this point in the history
This length was recently broken.
Not an issue for FreeTDS as, for some implementation bug, that
length is not used but MS drivers are complaining.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information
freddy77 committed Dec 8, 2024
1 parent c17bb04 commit 5a04bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ tds_send_login_ack(TDSSOCKET * tds, const char *progname)

TDS_START_LEN_TINYINT(tds) {
tds_put_string(tds, progname, strlen(progname));
} TDS_END_LEN
} TDS_END_LEN_STRING

/* server version, always big endian */
TDS_PUT_A4BE(&ui, tds->conn->product_version & 0x7fffffffu);
Expand Down

0 comments on commit 5a04bdb

Please sign in to comment.