summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt@openbsd.org <deraadt@openbsd.org>2019-06-28 01:23:50 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-06-28 12:53:02 +1000
commit1b2d55d15c6240c15a1e1cf4203b82e54a766272 (patch)
treef93ad4b280a8ca00d1beabf9ce12d8ae5cbd0441
parent5cdbaa78fcb718c39af4522d98016ad89d065427 (diff)
upstream: oops, from asou
OpenBSD-Commit-ID: 702e765d1639b732370d8f003bb84a1c71c4d0c6
-rw-r--r--hostfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostfile.c b/hostfile.c
index eaa237c81..6a2a3d0b0 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hostfile.c,v 1.74 2019/06/27 18:03:37 deraadt Exp $ */ 1/* $OpenBSD: hostfile.c,v 1.75 2019/06/28 01:23:50 deraadt Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -545,7 +545,7 @@ hostfile_replace_entries(const char *filename, const char *host, const char *ip,
545 /* 545 /*
546 * Prepare temporary file for in-place deletion. 546 * Prepare temporary file for in-place deletion.
547 */ 547 */
548 if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) = -1 || 548 if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) == -1 ||
549 (r = asprintf(&back, "%s.old", filename)) == -1) { 549 (r = asprintf(&back, "%s.old", filename)) == -1) {
550 r = SSH_ERR_ALLOC_FAIL; 550 r = SSH_ERR_ALLOC_FAIL;
551 goto fail; 551 goto fail;