[Ada] Fix IPv6 numeric address detection
authorDmitriy Anisimkov <anisimko@adacore.com>
Mon, 12 Aug 2019 09:01:58 +0000 (09:01 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 12 Aug 2019 09:01:58 +0000 (09:01 +0000)
commit8467866f26927d46be47240308278a867e3fb2b0
tree9e70c5cbdf8811cb420a81eefe9a8fdcf45d8101
parent4a2e9be1ac7c8f4c37b5deb4ce0b0f39925e56c9
[Ada] Fix IPv6 numeric address detection

IPv6 numeric address can't have less than 2 colons. It fixes the error
when Get_Host_By_Name called with hostname composed by only hexadecimal
symbols.

2019-08-12  Dmitriy Anisimkov  <anisimko@adacore.com>

gcc/ada/

* libgnat/g-socket.adb (Is_IPv6_Address): Check that no less
then 2 colons in IPv6 numeric address.

From-SVN: r274308
gcc/ada/ChangeLog
gcc/ada/libgnat/g-socket.adb