Wrong umask prevents temporary private key access

Hi,
umask 0600 prevents the user from reading his own temporary private key file.
0177 might be the intended mask.
Kind regards.
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index a8707c4..a804160 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -46,7 +46,7 @@
         return NULL;
     }
 
-    umode = umask(0600);
+    umode = umask(0177);
     fd = mkstemp(path);
     umask(umode);
     if (fd == -1) {