8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 20:43:03 +01:00

fixed illegal error reporting - warning about too long password is a victim

This commit is contained in:
alexpeshkoff 2006-04-23 13:26:37 +00:00
parent cd295b9c83
commit 9b62e7fb13

View File

@ -647,10 +647,10 @@ static bool get_switches(
case IN_SW_GSEC_PASSWORD: case IN_SW_GSEC_PASSWORD:
for (l = 0; l < 9 && string[l] && string[l] != ' '; l++) for (l = 0; l < 9 && string[l] && string[l] != ' '; l++)
user_data->password[l] = string[l]; user_data->password[l] = string[l];
if (l == 9) { /* if (l == 9) {
GSEC_print(GsecMsg77, NULL, NULL, NULL, NULL, NULL); GSEC_print(GsecMsg77, NULL, NULL, NULL, NULL, NULL);
/* warning password maximum 8 significant bytes used */ // warning password maximum 8 significant bytes used
} } */
user_data->password[l] = '\0'; user_data->password[l] = '\0';
user_data->password_entered = true; user_data->password_entered = true;
break; break;