From b1bd9f94e4b98a54b56cdac5ef7cc09608ba94d4 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 16 Apr 2014 19:03:14 +0000 Subject: [PATCH] add missing parens so that errorhost gets properly initialized. ok tedu miod (who had the same diff) --- libexec/rshd/rshd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index bc9972da728..c1af5ad44cb 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rshd.c,v 1.54 2012/12/04 02:24:47 deraadt Exp $ */ +/* $OpenBSD: rshd.c,v 1.55 2014/04/16 19:03:14 okan Exp $ */ /*- * Copyright (c) 1988, 1989, 1992, 1993, 1994 @@ -418,10 +418,10 @@ doit(struct sockaddr *fromp) hostname = hostnamebuf; if (res0) freeaddrinfo(res0); - } else + } else { strlcpy(hostnamebuf, naddr, sizeof(hostnamebuf)); errorhost = hostname = hostnamebuf; - + } #ifdef KERBEROS if (use_kerberos) { kdata = (AUTH_DAT *) authbuf; -- 2.20.1