mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-10056: SST method mysqldump is broken
errno must be reset before strtol()/strtoll() functions are invoked.
This commit is contained in:
@ -155,6 +155,7 @@ private:
|
||||
}
|
||||
|
||||
bool parse_port(const char *port) {
|
||||
errno= 0; /* Reset the errno */
|
||||
m_port= strtol(port, NULL, 10);
|
||||
if (errno == EINVAL || errno == ERANGE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user