add missing parens so that errorhost gets properly initialized.
authorokan <okan@openbsd.org>
Wed, 16 Apr 2014 19:03:14 +0000 (19:03 +0000)
committerokan <okan@openbsd.org>
Wed, 16 Apr 2014 19:03:14 +0000 (19:03 +0000)
ok tedu miod (who had the same diff)

libexec/rshd/rshd.c

index bc9972d..c1af5ad 100644 (file)
@@ -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;