summaryrefslogtreecommitdiff
path: root/clients/zwrite
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-07-20 06:28:39 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-07-20 06:28:39 +0000
commita62520c4dc7c10524859597d3c42849dfb207fa2 (patch)
treedbda9a5bbb5e16a9a51755ba8938bac7c0203656 /clients/zwrite
parent3f78c39fd06893ddc3fe8731d50416095ebe8470 (diff)
fix problem with looping when authorization fails.
Diffstat (limited to 'clients/zwrite')
-rw-r--r--clients/zwrite/zwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c
index 650f867..151aba8 100644
--- a/clients/zwrite/zwrite.c
+++ b/clients/zwrite/zwrite.c
@@ -277,10 +277,10 @@ send_off(notice, real)
continue;
}
if (retnotice.z_kind == SERVNAK) {
- printf("Received authentication failure while sending to %s\n",
+ printf("Received authorization failure while sending to %s\n",
nrecips?notice->z_recipient:inst);
ZFreeNotice(&retnotice);
- continue;
+ break; /* if auth fails, punt */
}
if (retnotice.z_kind != SERVACK || !retnotice.z_message_len) {
printf("Detected server failure while receiving acknowledgement for %s\n",