* gss-misc.c (recv_token): When continuing partial read, decrease
authorEzra Peisach <epeisach@mit.edu>
Thu, 12 Oct 1995 15:17:07 +0000 (15:17 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 12 Oct 1995 15:17:07 +0000 (15:17 +0000)
number of bytes to read.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6966 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gss-sample/ChangeLog
src/appl/gss-sample/gss-misc.c

index ecbd213b98ac8822f24a630e5f2756325839c349..f15c38c0536355925cd71b6366bd7cc3f71ce375 100644 (file)
@@ -1,3 +1,8 @@
+Thu Oct 12 11:15:28 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * gss-misc.c (recv_token): When continuing partial read, decrease
+               number of bytes to read.
+
 Sun Oct  8 14:26:25 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * gss-misc.c (recv_token): When looping for partial read from
index 82110d79cebd9dae4dd7c85bd1d2512e5922995c..2801212cf5a2595b966b326f6e671e50a2714908 100644 (file)
@@ -143,7 +143,8 @@ int recv_token(s, tok)
      }
 
      while (readsofar < tok->length) {
-        ret = read(s, (char *) tok->value + readsofar, tok->length);
+        ret = read(s, (char *) tok->value + readsofar, 
+                   tok->length - readsofar);
         readsofar += ret;
         if (ret < 0) {
             perror("reading token data");