projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reinstate the textual service name in port forwarding Event Log
[u/mdw/putty]
/
sshpubk.c
diff --git
a/sshpubk.c
b/sshpubk.c
index
13a182a
..
9e89fe9
100644
(file)
--- a/
sshpubk.c
+++ b/
sshpubk.c
@@
-376,7
+376,8
@@
int saversakey(const Filename *filename, struct RSAKey *key, char *passphrase)
fp = f_open(*filename, "wb");
if (fp) {
int ret = (fwrite(buf, 1, p - buf, fp) == (size_t) (p - buf));
- ret = ret && (fclose(fp) == 0);
+ if (fclose(fp))
+ ret = 0;
return ret;
} else
return 0;