summaryrefslogtreecommitdiffstats
path: root/libexec/pppoed
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-10-31 02:46:12 +0000
committerbrian <brian@FreeBSD.org>2000-10-31 02:46:12 +0000
commit7ad8d8216987f50d555e46240206524b6673acd8 (patch)
tree18dc5e3cf387b4217f5d92338a0e4852ef4a607f /libexec/pppoed
parent87f7d0a784b3001a7697f226a31288dfb982acfa (diff)
downloadFreeBSD-src-7ad8d8216987f50d555e46240206524b6673acd8.zip
FreeBSD-src-7ad8d8216987f50d555e46240206524b6673acd8.tar.gz
Use the new-style ngpppoe_init_data structure.
Approved by: archie
Diffstat (limited to 'libexec/pppoed')
-rw-r--r--libexec/pppoed/pppoed.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c
index 87e9c10..c82d305 100644
--- a/libexec/pppoed/pppoed.c
+++ b/libexec/pppoed/pppoed.c
@@ -230,10 +230,9 @@ ConfigureNode(const char *prog, const char *iface, const char *provider,
plen = strlen(provider);
- data = (struct ngpppoe_init_data *)alloca(sizeof *data + plen + 1);
+ data = (struct ngpppoe_init_data *)alloca(sizeof *data + plen);
snprintf(data->hook, sizeof data->hook, "%s", ngc->peerhook);
strcpy(data->data, provider);
- data->data_len = plen;
spath = (char *)alloca(strlen(ngc->peerhook) + 3);
strcpy(spath, ".:");
@@ -323,10 +322,9 @@ Spawn(const char *prog, const char *acname, const char *exec,
/* Put the PPPoE node into OFFER mode */
slen = strlen(acname);
- data = (struct ngpppoe_init_data *)alloca(sizeof *data + slen + 1);
+ data = (struct ngpppoe_init_data *)alloca(sizeof *data + slen);
snprintf(data->hook, sizeof data->hook, "%s", ngc.ourhook);
strcpy(data->data, acname);
- data->data_len = slen;
path = (char *)alloca(strlen(ngc.ourhook) + 3);
strcpy(path, ".:");
OpenPOWER on IntegriCloud