signed/unsigned comparison

This commit is contained in:
Damien Miller
2012-02-20 10:22:44 +11:00
committed by Markus Friedl
parent 37f4c4a78f
commit 79061f1d6e

View File

@@ -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;
}