From 27feb465c7a16c0600db50d56514a1a831b5854e Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 31 Aug 2009 20:56:03 +0000 Subject: check correct variable for error message, spotted by martynas@ --- usr.bin/ssh/sftp-server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh') 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); -- cgit v1.2.3