From owner-cvs-all Sat Jan 6 16:26:36 2001 From owner-cvs-all@FreeBSD.ORG Sat Jan 6 16:26:33 2001 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F9D437B400; Sat, 6 Jan 2001 16:26:33 -0800 (PST) Received: (from archie@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f070QXj73699; Sat, 6 Jan 2001 16:26:33 -0800 (PST) (envelope-from archie) Message-Id: <200101070026.f070QXj73699@freefall.freebsd.org> From: Archie Cobbs Date: Sat, 6 Jan 2001 16:26:33 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/contrib/libpcap scanner.l X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG archie 2001/01/06 16:26:33 PST Modified files: contrib/libpcap scanner.l Log: When pcap_compile() detects an error, it longjmp()'s out of the scanner/parser. FreeBSD recently made 'flex' its default implementation of 'lex'. One of the incompatibilities of 'flex' vs. 'lex' is that if you longjmp() out of the scanner, you must call yyrestart() before doing another scan (as documented in flex(1)). So add an invocation to yyrestart() in lex_init(). This change should be backwards compatible with the original 'lex'. PR: bin/24116 Revision Changes Path 1.6 +2 -1 src/contrib/libpcap/scanner.l To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message