a closed connection if it does.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7339
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Jan 19 10:45:29 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * krlogin.c (des_read): Return 0 or -1 on close/error respectively.
+
Wed Jan 17 15:14:33 1996 Sam Hartman <hartmans@tertius.mit.edu>
* krlogin.c ((reader): Use select to find out-of-band data, not signals.
cc = krb5_net_read(bsd_context, fd, &c, 1);
/* we should check for non-blocking here, but we'd have
to make it save partial reads as well. */
- if (cc < 0) return 0; /* read error */
+ if (cc <= 0) return cc; /* read error */
if (cc == 1) {
if (c == 0) gotzero = 1;
}