summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-11-16 23:15:42 +0000
committerbrian <brian@FreeBSD.org>2000-11-16 23:15:42 +0000
commit2607c6601d6c936076e2f20ee94c9525942d1868 (patch)
tree4897a40fb2b3c9bd175693b001866426fe57522b /usr.sbin/ppp
parent5d83d171df44f3eeea633909f60d663b281955df (diff)
downloadFreeBSD-src-2607c6601d6c936076e2f20ee94c9525942d1868.zip
FreeBSD-src-2607c6601d6c936076e2f20ee94c9525942d1868.tar.gz
Go back to populating data_len in struct ngpppoe_init_data.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/ether.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c
index b54ef0a..cf9c999 100644
--- a/usr.sbin/ppp/ether.c
+++ b/usr.sbin/ppp/ether.c
@@ -585,9 +585,9 @@ ether_Create(struct physical *p)
/* And finally, request a connection to the given provider */
data = (struct ngpppoe_init_data *)alloca(sizeof *data + providerlen);
-
snprintf(data->hook, sizeof data->hook, "%s", dev->hook);
- strcpy(data->data, provider);
+ memcpy(data->data, provider, providerlen);
+ data->data_len = providerlen;
snprintf(connectpath, sizeof connectpath, ".:%s", dev->hook);
log_Printf(LogDEBUG, "Sending PPPOE_CONNECT to %s\n", connectpath);
OpenPOWER on IntegriCloud