mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +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:
parent
bb5e328b12
commit
737b5f81ac
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user