(handle_vanilla_tcp): shorten length when we shorten the buffer, this

matter im the PK-INIT encKey case where a checksum is done over the
whole packet. Reported by Olga Kornievskaia


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18345 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-08 09:01:36 +00:00
parent a52397d8a0
commit aa75a633ee

View File

@@ -608,6 +608,7 @@ handle_vanilla_tcp (krb5_context context,
krb5_storage_free(sp);
if(d->len - 4 >= len) {
memmove(d->buf, d->buf + 4, d->len - 4);
d->len -= 4;
return 1;
}
return 0;