phroxy

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/phroxy.git
Log | Files | Refs | LICENSE

commit da42dfe53a9cee016cfcb55eb33db0247a7a5563
parent a833b87179ac706192d6f767d94d23c0e3507c67
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 14 Sep 2020 16:45:31 +0200

Fail when menu data is incomplete

Diffstat:
Mphroxy.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/phroxy.c b/phroxy.c @@ -383,6 +383,10 @@ phroxy(char *url) if (!data) return 1; + /* fail on incomplete menu output */ + if (item == '1 && strncmp(data[len - 5], "\r\n.\r\n")) + return 1; + serveitem(item, data, len); return 0;