[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with ipropd-master in heimdal-20040426




Alf Wachsmann <alfw@slac.stanford.edu> writes:

> On Sat, 8 May 2004, Love wrote:
>> Alf Wachsmann <alfw@SLAC.Stanford.EDU> writes:
>> > Has anyone else seen this behavior?
>>
>> It seems I stored the operation on the wrong end of the data-blob when I
>> converted the code.
>
> Love,
>
> how is this code different from what was there before?

Before the krb5_storage was just create and the the default seek offset set
to 0 in the storage, then the

-    krb5_storage_seek(sp, data.length - 4, SEEK_SET);

changed the seek offset to point to the last 4 bytes of the data area, and
then the opcode (ONE_PRINC) into the last 4 bytes.

This is wrong, it should be stored in the first 4 bytes, removing the seek
makes that happen.

Love

PGP signature