correct action of disconnect
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Sun, 16 Oct 1983 12:35:24 +0000 (04:35 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Sun, 16 Oct 1983 12:35:24 +0000 (04:35 -0800)
SCCS-vsn: usr.bin/tip/acu.c 4.12

usr/src/usr.bin/tip/acu.c

index 4e416e3..5bb8da9 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)acu.c      4.11 (Berkeley) %G%";
+static char sccsid[] = "@(#)acu.c      4.12 (Berkeley) %G%";
 #endif
 
 #include "tip.h"
 #endif
 
 #include "tip.h"
@@ -126,7 +126,7 @@ disconnect(reason)
 {
        if (!conflag)
                return;
 {
        if (!conflag)
                return;
-       if (reason != NOSTR) {
+       if (reason == NOSTR) {
                logent(value(HOST), "", acu->acu_name, "call terminated");
                if (boolean(value(VERBOSE)))
                        printf("\r\ndisconnecting...");
                logent(value(HOST), "", acu->acu_name, "call terminated");
                if (boolean(value(VERBOSE)))
                        printf("\r\ndisconnecting...");