mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
my_addr_resolve: don't resolve unknown addresses to ??:0(??), but return an error instead
(better to have an address in the output than ??:0)
This commit is contained in:
@@ -153,6 +153,10 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc)
|
|||||||
while (*s != ':')
|
while (*s != ':')
|
||||||
s++;
|
s++;
|
||||||
*s++= 0;
|
*s++= 0;
|
||||||
|
|
||||||
|
if (strcmp(loc->file, "??") == 0)
|
||||||
|
return 1;
|
||||||
|
|
||||||
loc->line= 0;
|
loc->line= 0;
|
||||||
while (isdigit(*s))
|
while (isdigit(*s))
|
||||||
loc->line = loc->line * 10 + (*s++ - '0');
|
loc->line = loc->line * 10 + (*s++ - '0');
|
||||||
|
Reference in New Issue
Block a user