bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] already connected when closed


From: Alfred M. Szmidt
Subject: Re: [bug-inetutils] already connected when closed
Date: Thu, 28 Jun 2007 16:12:37 +0200 (CEST)

What do you think about the following fix?


--- cmds.c      31 May 2007 00:39:08 +0200      1.32
+++ cmds.c      28 Jun 2007 15:59:42 +0200      
@@ -170,11 +170,7 @@ setpeer (argc, argv)
   int port;
 
   if (connected)
-    {
-      printf ("Already connected to %s, use close first.\n", hostname);
-      code = -1;
-      return;
-    }
+    disconnect (0, 0);
   if (argc < 2)
     another (&argc, &argv, "to");
   if (argc < 2 || argc > 3)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]