summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2016-05-02 14:10:58 +0000
committerdjm <djm@openbsd.org>2016-05-02 14:10:58 +0000
commit0c58ab07a079c99a0550c2ab445c7ab5d40a039b (patch)
tree6a9f41fc84d0e9430fa44a633ac6e7c1c2bb6297
parentRemove a vax remnant (that was really a no-op anyway). (diff)
downloadwireguard-openbsd-0c58ab07a079c99a0550c2ab445c7ab5d40a039b.tar.xz
wireguard-openbsd-0c58ab07a079c99a0550c2ab445c7ab5d40a039b.zip
unbreak config parsing on reexec from previous commit
-rw-r--r--usr.bin/ssh/sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index fd2000d482e..9c9b19d4bfc 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.468 2016/05/02 10:26:04 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.469 2016/05/02 14:10:58 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1061,7 +1061,7 @@ recv_rexec_state(int fd, Buffer *conf)
cp = buffer_get_string(&m, &len);
if (conf != NULL)
- buffer_append(conf, cp, len + 1);
+ buffer_append(conf, cp, len);
free(cp);
if (buffer_get_int(&m)) {