mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-34437: handle error on getaddrinfo
When getaddrinfo returns and error, the contents of ai are invalid so we cannot continue based on their data structures. In the previous branch of the if statement, we abort there if there is an error so for consistency we abort here too. The test case fixes the port number to UINTMAX32 for both an enumberated bind-address and the default bind-address covering the two calls to getaddrinfo. Review thanks Sanja.
This commit is contained in:
7
mysql-test/main/bad_startup_options_debug.result
Normal file
7
mysql-test/main/bad_startup_options_debug.result
Normal file
@ -0,0 +1,7 @@
|
||||
#
|
||||
# MDEV-34437 SIGSEGV in vio_get_normalized_ip when using extra-port
|
||||
#
|
||||
FOUND 1 /\[ERROR\] Can't create IP socket: Servname not supported/ in errorlog.err
|
||||
FOUND 1 /\[ERROR\] Can't create IP socket: Servname not supported/ in errorlog.err
|
||||
# restart
|
||||
# End of 10.11 tests
|
Reference in New Issue
Block a user