mirror of
https://github.com/openssh/libopenssh
synced 2026-04-16 09:45:53 +00:00
signed/unsigned comparison
This commit is contained in:
committed by
Markus Friedl
parent
37f4c4a78f
commit
79061f1d6e
@@ -372,7 +372,7 @@ sshkey_load_file(int fd, const char *filename, struct sshbuf *blob)
|
||||
}
|
||||
}
|
||||
if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 &&
|
||||
st.st_size != sshbuf_len(blob)) {
|
||||
st.st_size != (off_t)sshbuf_len(blob)) {
|
||||
r = SSH_ERR_FILE_CHANGED;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user