(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:
		| @@ -608,6 +608,7 @@ handle_vanilla_tcp (krb5_context context, | |||||||
|     krb5_storage_free(sp); |     krb5_storage_free(sp); | ||||||
|     if(d->len - 4 >= len) { |     if(d->len - 4 >= len) { | ||||||
| 	memmove(d->buf, d->buf + 4, d->len - 4); | 	memmove(d->buf, d->buf + 4, d->len - 4); | ||||||
|  | 	d->len -= 4; | ||||||
| 	return 1; | 	return 1; | ||||||
|     } |     } | ||||||
|     return 0; |     return 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand