aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 9b7f6be5..f9cd1763 100644
--- a/driver.c
+++ b/driver.c
@@ -2046,6 +2046,7 @@ const struct method *proto; /* protocol method table */
}
no_error:
+ /* ordinary termination with no errors -- officially log out */
ok = (protocol->logout_cmd)(sock, ctl);
/*
* Hmmmm...arguably this would be incorrect if we had fetches but
@@ -2057,6 +2058,7 @@ const struct method *proto; /* protocol method table */
goto closeUp;
cleanUp:
+ /* we only get here on error */
if (ok != 0 && ok != PS_SOCKET)
(protocol->logout_cmd)(sock, ctl);
SockClose(sock);