summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2014-04-16 19:03:14 +0000
committerokan <okan@openbsd.org>2014-04-16 19:03:14 +0000
commitb1bd9f94e4b98a54b56cdac5ef7cc09608ba94d4 (patch)
tree39f908f9d35147ad8c0a2b525de494d148a66b6a
parentGive the mlinks and keys tables a pageid index, (diff)
downloadwireguard-openbsd-b1bd9f94e4b98a54b56cdac5ef7cc09608ba94d4.tar.xz
wireguard-openbsd-b1bd9f94e4b98a54b56cdac5ef7cc09608ba94d4.zip
add missing parens so that errorhost gets properly initialized.
ok tedu miod (who had the same diff)
-rw-r--r--libexec/rshd/rshd.c6
1 files 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;