]> andersk Git - openssh.git/blobdiff - auth-krb5.c
- (dtucker) [auth-krb5.c] There's no guarantee that snprintf will set errno
[openssh.git] / auth-krb5.c
index 01b387c233ae5e98d99865ecb5fa00bf19339b61..6ae4f5fc4a32df682f85c142d728c6e2570d217e 100644 (file)
@@ -222,7 +222,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))
-               return errno;
+               return ENOMEM;
 
        old_umask = umask(0177);
        tmpfd = mkstemp(ccname + strlen("FILE:"));
This page took 0.044674 seconds and 4 git commands to generate.