summaryrefslogtreecommitdiff
path: root/methods/rfc2553emu.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:19 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:19 +0000
commitf93d1355dd915fd5c197293ba0e62292ec15cb2d (patch)
tree78be0c02ba0ec102282e26e1b611b6f0f9ab25e5 /methods/rfc2553emu.cc
parent0b5c85b5c9edc8cbd9a3962d412810354398b095 (diff)
Reorderd error handling
Author: jgg Date: 1999-12-09 03:45:56 GMT Reorderd error handling
Diffstat (limited to 'methods/rfc2553emu.cc')
-rw-r--r--methods/rfc2553emu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/rfc2553emu.cc b/methods/rfc2553emu.cc
index bd8d2236f..e363c68e2 100644
--- a/methods/rfc2553emu.cc
+++ b/methods/rfc2553emu.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: rfc2553emu.cc,v 1.3 1999/05/27 05:51:18 jgg Exp $
+// $Id: rfc2553emu.cc,v 1.4 1999/12/09 03:45:56 jgg Exp $
/* ######################################################################
RFC 2553 Emulation - Provides emulation for RFC 2553 getaddrinfo,
@@ -57,7 +57,7 @@ int getaddrinfo(const char *nodename, const char *servname,
Proto = hints->ai_socktype;
// Not a number, must be a name.
- if (End != servname + strlen(End))
+ if (End != servname + strlen(servname))
{
struct servent *Srv = 0;