diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-21 19:00:33 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-21 19:22:07 -0800 |
| commit | d571d3f03bf56be2a5828fe2db86308229dc5625 (patch) | |
| tree | a04ec11ee3c5d28a061fae2151669ad17e46915a /src/platform/udp_test.c | |
| parent | ebc020cd4f8e2121d6ecc2dfc0cd48c594329cde (diff) | |
| download | nng-d571d3f03bf56be2a5828fe2db86308229dc5625.tar.gz nng-d571d3f03bf56be2a5828fe2db86308229dc5625.tar.bz2 nng-d571d3f03bf56be2a5828fe2db86308229dc5625.zip | |
posix udp: More explicit checks for bogus address family
This triggered an error on FreeBSD because apparently FreeBSD will
return a different value when seeing an AF_UNIX socket with UDP.
Diffstat (limited to 'src/platform/udp_test.c')
| -rw-r--r-- | src/platform/udp_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/udp_test.c b/src/platform/udp_test.c index 7cafff1e..211c985c 100644 --- a/src/platform/udp_test.c +++ b/src/platform/udp_test.c @@ -267,6 +267,7 @@ test_udp_bogus_bind(void) // Some platforms reject IPC addresses altogether (Windows), // whereas others just say it's not supported with UDP. NUTS_ASSERT((rv == NNG_ENOTSUP) || (rv == NNG_EADDRINVAL)); + NUTS_MSG("Result was %d %s", rv, nng_strerror(rv)); // NULL address also bad. NUTS_FAIL(nng_udp_open(&u, NULL), NNG_EADDRINVAL); |
