From 62f99981163b9224959e87cfbff4a26d555b28bc Mon Sep 17 00:00:00 2001
From: David Hedbor <david@hedbor.org>
Date: Tue, 7 Apr 1998 22:53:40 -0700
Subject: [PATCH] Had mixed up the local and the remote port.

Rev: lib/modules/Protocols.pmod/Ident.pmod:1.2
---
 lib/modules/Protocols.pmod/Ident.pmod | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/modules/Protocols.pmod/Ident.pmod b/lib/modules/Protocols.pmod/Ident.pmod
index d615035fe1..2c4c0bbc6c 100644
--- a/lib/modules/Protocols.pmod/Ident.pmod
+++ b/lib/modules/Protocols.pmod/Ident.pmod
@@ -1,6 +1,6 @@
 // An implementation of the IDENT protocol, specified in RFC 931.
 //
-// $Id: Ident.pmod,v 1.1 1998/04/08 05:38:52 neotron Exp $
+// $Id: Ident.pmod,v 1.2 1998/04/08 05:53:40 neotron Exp $
 
 
 class client {
@@ -35,7 +35,7 @@ class client {
       destruct(remote_fd);
       throw(err);
     }
-    if(remote_fd->write(laddr[1]+","+raddr[1]+"\r\n") == -1) {
+    if(remote_fd->write(raddr[1]+","+laddr[1]+"\r\n") == -1) {
       destruct(remote_fd);
       throw(backtrace() +({ "Protocols.Ident: write failed."}));
     }
@@ -50,7 +50,7 @@ class client {
     response -= " ";
     response -= "\r\n";
     response /= ":";
-    if(sizeof(response) < 3)
+    if(sizeof(response) < 2)
       return ({ "ERROR", "UNKNOWN-ERROR" });
     return response[1..];
   }
-- 
GitLab