summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2016-01-09 07:35:58 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-01-09 07:35:58 (GMT)
commit3df291f812208a8ce07a2878784a0a73e4587193 (patch) (side-by-side diff)
treef8ffcf708ddef646227ef8f9496f212699fb4b84 /src
parent8434d5e107c0f43847db56569106e2aafb1a67f4 (diff)
downloadgrecs-3df291f812208a8ce07a2878784a0a73e4587193.tar.gz
grecs-3df291f812208a8ce07a2878784a0a73e4587193.tar.bz2
Bugfix
* src/sockaddr.c (parse_inet): Handle GRECS_AH_PASSIVE
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/sockaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sockaddr.c b/src/sockaddr.c
index 83e1fe8..22f02ff 100644
--- a/src/sockaddr.c
+++ b/src/sockaddr.c
@@ -150,7 +150,7 @@ parse_inet(struct grecs_sockaddr **ret,
snprintf(portbuf, sizeof portbuf, "%hu", gh->port);
service = portbuf;
hints.ai_flags |= AI_NUMERICSERV;
- } else {
+ } else if (!(gh->flags & GRECS_AH_PASSIVE)) {
grecs_error(locus, 0,
_("service not specified: %s"), arg);
return -1;

Return to:

Send suggestions and report system problems to the System administrator.