From 142644bfa0ccf521f3d4384a2635b44a1ffe6fcb Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 9 Nov 2017 22:17:09 +0000 Subject: [PATCH] slip: fix dumb bug that corrupted memory --- Applications/netd/slip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/netd/slip.c b/Applications/netd/slip.c index 72c17cca..ae2c4b06 100644 --- a/Applications/netd/slip.c +++ b/Applications/netd/slip.c @@ -105,6 +105,7 @@ static int slip_poll( void ) /* receive packet to a buffer */ static int slip_recv( unsigned char *b, int len ) { + len = iptr - ibuf; /* Mark it as IP */ b[12] = 0x08; b[13] = 0x00; -- 2.34.1