Commit 120480d1 authored by Haidong Ji's avatar Haidong Ji Committed by Daniel Black

MDEV-27394 added memset to zero out addr.un.sun_path string

If this char[] is not zeroed out, inaccurate log message described in
MDEV-27394 will show up.
parent 4030a9fb
......@@ -2474,6 +2474,7 @@ static void use_systemd_activated_sockets()
addr.un.sun_path[0] = '@';
sql_print_information("Using systemd activated unix socket %s%s",
addr.un.sun_path, sock.is_extra_port ? " (extra)" : "");
memset(addr.un.sun_path, 0, sizeof(addr.un.sun_path));
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment