summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth/secstore/secstored.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/auth/secstore/secstored.c')
-rw-r--r--sys/src/cmd/auth/secstore/secstored.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/auth/secstore/secstored.c b/sys/src/cmd/auth/secstore/secstored.c
index 7ca648bdc..67955a231 100644
--- a/sys/src/cmd/auth/secstore/secstored.c
+++ b/sys/src/cmd/auth/secstore/secstored.c
@@ -228,8 +228,7 @@ dologin(int fd, char *S, int forceSTA)
rv = -1;
/* collect the first message */
- if((conn = newSConn(fd)) == nil)
- return -1;
+ conn = newSConn(fd);
if(readstr(conn, msg) < 0){
fprint(2, "secstored: remote: %s: %r\n", msg);
writerr(conn, "can't read your first message");