summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authordtucker <dtucker>2009-10-06 21:47:24 +0000
committerdtucker <dtucker>2009-10-06 21:47:24 +0000
commit7c6bf9ba01aa66561c2f1403b6dc9911a9fa4326 (patch)
tree4b26f731e62533a3b07a4db3ce991ca95ff342f9 /sftp-server.c
parent645a5abb6f7e3ec6dd428865397111b0261f2a70 (diff)
downloadopenssh-7c6bf9ba01aa66561c2f1403b6dc9911a9fa4326.tar.gz
- djm@cvs.openbsd.org 2009/08/31 20:56:02
[sftp-server.c] check correct variable for error message, spotted by martynas@
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-server.c b/sftp-server.c
index d144001b..66c0c1d5 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.86 2009/08/27 17:28:52 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.87 2009/08/31 20:56:02 djm Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -1368,7 +1368,7 @@ sftp_server_main(int argc, char **argv, struct passwd *user_pw)
break;
case 'u':
mask = (mode_t)strtonum(optarg, 0, 0777, &errmsg);
- if (cp != NULL)
+ if (errmsg != NULL)
fatal("Invalid umask \"%s\": %s",
optarg, errmsg);
(void)umask(mask);