From 76a618a8bfc0c3b48bbddff2af4159dbae769bf9 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 21 Oct 1996 20:17:11 +0000 Subject: [PATCH] Fixed typo so that the remaining length field is set correctly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9218 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/ChangeLog | 6 ++++++ src/lib/gssapi/generic/util_ordering.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index 82e724ea7..5bcfeae3f 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 21 16:16:26 1996 Theodore Y. Ts'o + + * util_ordering.c (g_queue_internalize, g_queue_externalize): + Fixed typo so that the remaining length field is set + correctly. + Sat Oct 19 00:39:25 1996 Theodore Y. Ts'o * util_ordering.c (g_queue_externalize, g_queue_internalize, diff --git a/src/lib/gssapi/generic/util_ordering.c b/src/lib/gssapi/generic/util_ordering.c index 5dc78a0d4..d5970a739 100644 --- a/src/lib/gssapi/generic/util_ordering.c +++ b/src/lib/gssapi/generic/util_ordering.c @@ -191,7 +191,7 @@ g_queue_externalize(void *vqueue, unsigned char **buf, size_t *lenremain) { memcpy(*buf, vqueue, sizeof(queue)); *buf += sizeof(queue); - *lenremain += sizeof(queue); + *lenremain -= sizeof(queue); return 0; } @@ -205,7 +205,7 @@ g_queue_internalize(void **vqueue, unsigned char **buf, size_t *lenremain) return ENOMEM; memcpy(q, *buf, sizeof(queue)); *buf += sizeof(queue); - *lenremain += sizeof(queue); + *lenremain -= sizeof(queue); *vqueue = q; return 0; } -- 2.26.2