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

IPv6 address could contain percent sign inside, therefore make sure error string not used as vfprintf format string by gds__log().

See also comments at CORE-2493.
This commit is contained in:
hvlad 2016-01-13 09:35:23 +00:00
parent bb5e328b12
commit 737b5f81ac

View File

@ -2488,7 +2488,9 @@ static void inet_error(bool releasePort, rem_port* port, const TEXT* function, I
err.append(port->port_user_name);
}
gds__log(err.c_str());
// Address could contain percent sign inside, therefore make
// sure error string not used as printf format string.
gds__log("%s", err.c_str());
}
inet_gen_error(releasePort, port, Arg::Gds(operation) << SYS_ERR(status));