summaryrefslogtreecommitdiff
path: root/appl/lib/msgio.b
diff options
context:
space:
mode:
Diffstat (limited to 'appl/lib/msgio.b')
-rw-r--r--appl/lib/msgio.b2
1 files changed, 1 insertions, 1 deletions
diff --git a/appl/lib/msgio.b b/appl/lib/msgio.b
index 035b1783..65ce6017 100644
--- a/appl/lib/msgio.b
+++ b/appl/lib/msgio.b
@@ -89,7 +89,7 @@ getbuf(fd: ref Sys->FD, buf: array of byte, n: int): (int, string)
}
if(buf[0] == byte 0)
return (n, nil);
- if(buf[0] == byte 16rFF){
+ if(buf[0] != byte 16rFF){
# garbled, possibly the wrong encryption
return (-1, "failure");
}