[openssh-commits] [openssh] 01/01: upstream: oops, from asou

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jun 28 12:53:34 AEST 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 1b2d55d15c6240c15a1e1cf4203b82e54a766272
Author: deraadt at openbsd.org <deraadt at openbsd.org>
Date:   Fri Jun 28 01:23:50 2019 +0000

    upstream: oops, from asou
    
    OpenBSD-Commit-ID: 702e765d1639b732370d8f003bb84a1c71c4d0c6
---
 hostfile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hostfile.c b/hostfile.c
index eaa237c8..6a2a3d0b 100644
--- a/hostfile.c
+++ b/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 at cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -545,7 +545,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;

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list