From b39a3da45f4dcb3c2cf6ce7c0b4177a04a8262a4 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 12 Oct 1995 15:17:07 +0000 Subject: [PATCH] * gss-misc.c (recv_token): When continuing partial read, decrease 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 | 5 +++++ src/appl/gss-sample/gss-misc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index ecbd213b9..f15c38c05 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 12 11:15:28 1995 Ezra Peisach + + * gss-misc.c (recv_token): When continuing partial read, decrease + number of bytes to read. + Sun Oct 8 14:26:25 1995 Ezra Peisach * gss-misc.c (recv_token): When looping for partial read from diff --git a/src/appl/gss-sample/gss-misc.c b/src/appl/gss-sample/gss-misc.c index 82110d79c..2801212cf 100644 --- a/src/appl/gss-sample/gss-misc.c +++ b/src/appl/gss-sample/gss-misc.c @@ -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"); -- 2.26.2