krb5: Fix wrong cast in _krb5_store_data_at_offset()
This commit is contained in:
@@ -1961,7 +1961,7 @@ _krb5_store_data_at_offset(krb5_storage *sp,
|
|||||||
krb5_ssize_t nbytes;
|
krb5_ssize_t nbytes;
|
||||||
off_t pos;
|
off_t pos;
|
||||||
|
|
||||||
if (offset == (off_t)-1) {
|
if (offset == (size_t)-1) {
|
||||||
if (data == NULL || data->data == NULL) {
|
if (data == NULL || data->data == NULL) {
|
||||||
offset = 0;
|
offset = 0;
|
||||||
} else {
|
} else {
|
||||||
@@ -1969,7 +1969,7 @@ _krb5_store_data_at_offset(krb5_storage *sp,
|
|||||||
offset = sp->seek(sp, 0, SEEK_END);
|
offset = sp->seek(sp, 0, SEEK_END);
|
||||||
sp->seek(sp, pos, SEEK_SET);
|
sp->seek(sp, pos, SEEK_SET);
|
||||||
|
|
||||||
if (offset == (off_t)-1)
|
if (offset == (size_t)-1)
|
||||||
return HEIM_ERR_NOT_SEEKABLE;
|
return HEIM_ERR_NOT_SEEKABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user