diff options
author | brian <brian@FreeBSD.org> | 1999-06-05 21:36:00 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-06-05 21:36:00 +0000 |
commit | b4fbb76a1315606ed5232890a285663987ef1808 (patch) | |
tree | a7dc4874df8a78ef11f5c3f4c17fade049036085 /usr.sbin/ppp/tcp.c | |
parent | 66658a0618328716b17140aeb1f74f883b3fd45b (diff) | |
download | FreeBSD-src-b4fbb76a1315606ed5232890a285663987ef1808.zip FreeBSD-src-b4fbb76a1315606ed5232890a285663987ef1808.tar.gz |
Correct the way ppp transfers links on the server side in MP
mode by padding out the ``struct device'' to the maximum
device size.
Bump the ppp version number to indicate the transfer format
change.
This should make MP over tty and udp devices functional again.
Diffstat (limited to 'usr.sbin/ppp/tcp.c')
-rw-r--r-- | usr.sbin/ppp/tcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/tcp.c b/usr.sbin/ppp/tcp.c index ab7c32c..2277b3c 100644 --- a/usr.sbin/ppp/tcp.c +++ b/usr.sbin/ppp/tcp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tcp.c,v 1.2 1999/05/12 09:49:04 brian Exp $ + * $Id: tcp.c,v 1.3 1999/05/24 16:39:15 brian Exp $ */ #include <sys/types.h> @@ -36,6 +36,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/uio.h> #include <termios.h> #include <unistd.h> @@ -116,6 +117,7 @@ tcp_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, int maxiov) { if (type == TCP_DEVICE) { + free(iov[(*niov)++].iov_base); physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC); return &tcpdevice; } |