From 7ad8d8216987f50d555e46240206524b6673acd8 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 31 Oct 2000 02:46:12 +0000 Subject: Use the new-style ngpppoe_init_data structure. Approved by: archie --- usr.sbin/ppp/ether.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/ppp') diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c index c9906db..b54ef0a 100644 --- a/usr.sbin/ppp/ether.c +++ b/usr.sbin/ppp/ether.c @@ -584,11 +584,10 @@ ether_Create(struct physical *p) /* And finally, request a connection to the given provider */ - data = (struct ngpppoe_init_data *)alloca(sizeof *data + providerlen + 1); + data = (struct ngpppoe_init_data *)alloca(sizeof *data + providerlen); snprintf(data->hook, sizeof data->hook, "%s", dev->hook); strcpy(data->data, provider); - data->data_len = providerlen; snprintf(connectpath, sizeof connectpath, ".:%s", dev->hook); log_Printf(LogDEBUG, "Sending PPPOE_CONNECT to %s\n", connectpath); -- cgit v1.1