summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2009-08-31 20:56:03 +0000
committerDamien Miller <djm@cvs.openbsd.org>2009-08-31 20:56:03 +0000
commit27feb465c7a16c0600db50d56514a1a831b5854e (patch)
tree63b77babbb3793c0957a34598baadd8809247abc /usr.bin/ssh
parentb3d19f3bfd39a96bc976abf38ce158e212394563 (diff)
check correct variable for error message, spotted by martynas@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sftp-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index 5fd760453d6..fb5da5dbffe 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/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.
*
@@ -1339,7 +1339,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);