From: Theodore Tso Date: Mon, 21 Oct 1996 20:17:11 +0000 (+0000) Subject: Fixed typo so that the remaining length field is set correctly X-Git-Tag: krb5-1.0-freeze1~204 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76a618a8bfc0c3b48bbddff2af4159dbae769bf9;p=krb5.git 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 --- 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; }