(do_read): handle EOF. From Brian A May <bmay@dgs.monash.edu.au>

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6698 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-04 06:31:32 +00:00
parent 9c9ae30857
commit ce4e548b12

View File

@@ -58,6 +58,8 @@ do_read (int fd,
krb5_data data;
ret = krb5_net_read (context, &fd, &len, 4);
if (ret == 0)
return 0;
if (ret != 4)
return -1;
len = ntohl(len);