summaryrefslogtreecommitdiff
path: root/auth-krb5.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-10 14:43:11 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-10 14:43:11 +1100
commit618db97fe17c7249cef1b53ed1adc9582b10f7f4 (patch)
tree653286a77c3cc20ee781f1a261ed4a7c68a046f0 /auth-krb5.c
parent063ba7455fa6c726771fe0d8495544a38c29fa51 (diff)
downloadopenssh-git-618db97fe17c7249cef1b53ed1adc9582b10f7f4.tar.gz
- (dtucker) [auth-krb5.c] Fix -Wsign-compare warning in non-Heimdal path.
Patch from djm@.
Diffstat (limited to 'auth-krb5.c')
-rw-r--r--auth-krb5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth-krb5.c b/auth-krb5.c
index c7367b49..a84e5401 100644
--- a/auth-krb5.c
+++ b/auth-krb5.c
@@ -218,7 +218,7 @@ ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) {
ret = snprintf(ccname, sizeof(ccname),
"FILE:/tmp/krb5cc_%d_XXXXXXXXXX", geteuid());
- if (ret == -1 || ret >= sizeof(ccname))
+ if (ret < 0 || (size_t)ret >= sizeof(ccname))
return ENOMEM;
old_umask = umask(0177);