summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-06-28 01:23:50 +0000
committerderaadt <deraadt@openbsd.org>2019-06-28 01:23:50 +0000
commit9ea032d8af4dea3b34cbcc0831028d94729a7e72 (patch)
treeb14c6e88da90b258344dbd9c085d1756b4f207f8
parentDESCRIPTION: Be more direct about what delay(9) actually does. (diff)
downloadwireguard-openbsd-9ea032d8af4dea3b34cbcc0831028d94729a7e72.tar.xz
wireguard-openbsd-9ea032d8af4dea3b34cbcc0831028d94729a7e72.zip
oops, from asou
-rw-r--r--usr.bin/ssh/hostfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/hostfile.c b/usr.bin/ssh/hostfile.c
index d73fe690ec5..fd020cdae72 100644
--- a/usr.bin/ssh/hostfile.c
+++ b/usr.bin/ssh/hostfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostfile.c,v 1.74 2019/06/27 18:03:37 deraadt Exp $ */
+/* $OpenBSD: hostfile.c,v 1.75 2019/06/28 01:23:50 deraadt Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -542,7 +542,7 @@ hostfile_replace_entries(const char *filename, const char *host, const char *ip,
/*
* Prepare temporary file for in-place deletion.
*/
- if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) = -1 ||
+ if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) == -1 ||
(r = asprintf(&back, "%s.old", filename)) == -1) {
r = SSH_ERR_ALLOC_FAIL;
goto fail;