(fkt_next_entry_int): read the 32 bit kvno if the reset of the data is
longer then 4 bytes in hope to be forward compatible. Pointed out by Michael B Allen. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17457 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -428,7 +428,7 @@ loop:
|
||||
* if it's zero, assume that the 8bit one was right,
|
||||
* otherwise trust the new value */
|
||||
curpos = krb5_storage_seek(cursor->sp, 0, SEEK_CUR);
|
||||
if(len + 4 + pos - curpos == 4) {
|
||||
if(len + 4 + pos - curpos >= 4) {
|
||||
ret = krb5_ret_int32(cursor->sp, &tmp32);
|
||||
if (ret == 0 && tmp32 != 0) {
|
||||
entry->vno = tmp32;
|
||||
|
Reference in New Issue
Block a user