diff options
author | shattered <shattered@pkgsrc.org> | 2011-10-17 21:43:27 +0000 |
---|---|---|
committer | shattered <shattered@pkgsrc.org> | 2011-10-17 21:43:27 +0000 |
commit | 56e97ad431146e6b3422622b9f901b0c9bafbd6f (patch) | |
tree | bd7bbf5d448727a83686ba811fe3576062ce4d6b /audio/mpg123 | |
parent | f5061a86a2736fff2d5ef80ce2270eb42b5e80c4 (diff) | |
download | pkgsrc-56e97ad431146e6b3422622b9f901b0c9bafbd6f.tar.gz |
PR/44543 -- recognize any non-zero return value getaddrinfo() as error.
Bump revisions of all variant packages.
(wearing pointy hat)
Diffstat (limited to 'audio/mpg123')
-rw-r--r-- | audio/mpg123/patches/patch-aj | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/mpg123/patches/patch-aj b/audio/mpg123/patches/patch-aj new file mode 100644 index 00000000000..1e077847ff2 --- /dev/null +++ b/audio/mpg123/patches/patch-aj @@ -0,0 +1,15 @@ +$NetBSD: patch-aj,v 1.4 2011/10/17 21:43:27 shattered Exp $ + +getaddrinfo(3) returns non-zero on error. + +--- src/resolver.c.orig 2010-10-04 06:23:26.000000000 +0000 ++++ src/resolver.c +@@ -283,7 +283,7 @@ int open_connection(mpg123_string *host, + #endif + addrcount = getaddrinfo(host->p, port->p, &hints, &addrlist); + +- if(addrcount <0) ++ if(addrcount != 0) + { + error3("Resolving %s:%s: %s", host->p, port->p, gai_strerror(addrcount)); + return -1; |