summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:13 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:13 +0000
commit72472b958df7170b33ccf3bd5a59005c9c8740e6 (patch)
treee6b8b2bef569fa4f33a508f7815c090ef02fef6b /methods/connect.cc
parent70777d4b589007eeb840d9a67934f1e648f302d7 (diff)
Changed handling of EAI_SERVICE
Author: jgg Date: 1999-11-19 05:01:54 GMT Changed handling of EAI_SERVICE
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index 4d0cf985c..034b1c212 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: connect.cc,v 1.3 1999/07/18 23:06:56 jgg Exp $
+// $Id: connect.cc,v 1.4 1999/11/19 05:01:54 jgg Exp $
/* ######################################################################
Connect - Replacement connect call
@@ -115,10 +115,7 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
if ((Res = getaddrinfo(Host.c_str(),S,&Hints,&LastHostAddr)) != 0 ||
LastHostAddr == 0)
{
- if (Res == EAI_SERVICE)
- return _error->Error("Could not resolve service '%s'",S);
-
- if (Res == EAI_NONAME)
+ if (Res == EAI_NONAME || Res == EAI_SERVICE)
{
if (DefPort != 0)
{