Check return value from krb_net_write.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1466 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-03-20 19:38:07 +00:00
parent 83011bb8bd
commit f492a95944

View File

@@ -320,7 +320,8 @@ int krb4_write(int fd, void *data, int length)
data_buffer[1] = (bytes >> 16) & 0xff;
data_buffer[2] = (bytes >> 8) & 0xff;
data_buffer[3] = bytes & 0xff;
krb_net_write(fd, data_buffer, bytes+4);
if(krb_net_write(fd, data_buffer, bytes+4) < 0)
return -1;
length -= len;
data = (unsigned char*)data + len;
tx += len;