From 79061f1d6e3d3a3b26d6327dda71ce4af23c8a97 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 20 Feb 2012 10:22:44 +1100 Subject: [PATCH] signed/unsigned comparison --- ssh/authfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/authfile.c b/ssh/authfile.c index 8da0bf1..d918d83 100644 --- a/ssh/authfile.c +++ b/ssh/authfile.c @@ -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; }