summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2004-06-14 19:22:40 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2004-06-14 19:22:40 +0000
commita2bdf04d2212fc7520c6bbb0e9a9bebb5d36939d (patch)
treeda6ad88c1918fc0d47e1e81cb73a0fc5c171af1a /usr.sbin
parent0deeb1699de33aac9f62bab60943d109fe2d2c51 (diff)
Set relay session id in outgoing packets properly. Report with patch
from Girish Venkatachalam. ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pppoe/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pppoe/client.c b/usr.sbin/pppoe/client.c
index 99442e649fd..284700844b8 100644
--- a/usr.sbin/pppoe/client.c
+++ b/usr.sbin/pppoe/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.18 2004/05/06 20:29:03 deraadt Exp $ */
+/* $OpenBSD: client.c,v 1.19 2004/06/14 19:22:39 canacar Exp $ */
/*
* Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net
@@ -256,7 +256,7 @@ send_padr(int bfd, u_int8_t *srv, struct ether_addr *myea,
iov[idx].iov_base = &n->type;
iov[idx++].iov_len = sizeof(n->type) + sizeof(n->len);
if (n->len) {
- iov[idx].iov_base = &n->val;
+ iov[idx].iov_base = n->val;
iov[idx++].iov_len = n->len;
}
ph->len += sizeof(n->type) + sizeof(n->len) + n->len;