Fix handling of IPv6 addresses
authorNeil Jerram <neil@ossau.uklinux.net>
Thu, 1 Oct 2009 22:27:59 +0000 (23:27 +0100)
committerNeil Jerram <neil@ossau.uklinux.net>
Thu, 1 Oct 2009 22:27:59 +0000 (23:27 +0100)
commit1ff4da6570d17b7ce5b74b926e8f9f2c99757896
treea5cc200821cdc6092531e7dc36054b7ecd8b4091
parent32bc92570eb9282e46c1b851cc65cae946547ea9
Fix handling of IPv6 addresses

Thanks to Scott McPeak for reporting this and providing a patch.

* libguile/socket.c (scm_to_ipv6): When address is the wrong type,
  provide more information in the exception message.

  (scm_to_sockaddr): scm_to_ipv6 expects just an address, not the
  whole vector.

* test-suite/tests/socket.test ("AF_INET6/SOCK_STREAM"): New set of
  tests.
NEWS
libguile/socket.c
test-suite/tests/socket.test