Skip to content

Commit 3964a83

Browse files
committed
server session BUGFIX incorrect fopen mode
Fixes #83
1 parent d5f877d commit 3964a83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/session_server_ssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ base64der_key_to_tmp_file(const char *in, int rsa)
5353
return NULL;
5454
}
5555

56-
file = fdopen(fd, "r");
56+
file = fdopen(fd, "w");
5757
if (!file) {
5858
close(fd);
5959
return NULL;

0 commit comments

Comments
 (0)