the incomming data into the middle of the token - not back at the
start.
Now, can someone explain why under NetBSD, in one direction 400+ bytes
could be sent at one time, but in the reverse, 102 had to be broken down
into 100 + 2? Anyways, this fixes the NetBSD problem with the tests.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6948
dc483132-0cff-0310-8789-
dd5450dbe970
+Sun Oct 8 14:26:25 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * gss-misc.c (recv_token): When looping for partial read from
+ network, start reading in the middle of the token.
+
Wed Sep 27 18:36:06 1995 Theodore Y. Ts'o <tytso@dcl>
* gss-client.c (main): Set display_file to be stdout.
}
while (readsofar < tok->length) {
- ret = read(s, (char *) tok->value, tok->length);
+ ret = read(s, (char *) tok->value + readsofar, tok->length);
readsofar += ret;
if (ret < 0) {
perror("reading token data");