On Sat, Dec 21, 2002 at 06:27:18PM +0100, Jedi/Sector One wrote:
>   pfctl segfaults when it encounters a "no-rdr" keyword with no previous
> line with the "rdr" keyword.

  This little patch may improve things.

-- 
Apprenons le francais grace a l'Internet :
<< je me demande si les pb de base de donnee ne serait pas dues aux core de
supervise. En tout cas, l'heure correspond a pe pres. >>
--- sbin/pfctl/parse.y.orig     Sat Dec 21 10:23:27 2002
+++ sbin/pfctl/parse.y  Sat Dec 21 18:34:40 2002
@@ -2072,15 +2072,15 @@
                }
                ;
 
-pooltype       : /* empty */                   { $$.type = PF_POOL_NONE; }
-               | BITMASK                       { $$.type = PF_POOL_BITMASK; }
-               | RANDOM                        { $$.type = PF_POOL_RANDOM; }
+pooltype       : /* empty */                   { $$.key = NULL; $$.type = 
+PF_POOL_NONE; }
+               | BITMASK                       { $$.key = NULL; $$.type = 
+PF_POOL_BITMASK; }
+               | RANDOM                        { $$.key = NULL; $$.type = 
+PF_POOL_RANDOM; }
                | SOURCEHASH hashkey
                {
                        $$.type = PF_POOL_SRCHASH;
                        $$.key = $2;
                }
-               | ROUNDROBIN                    { $$.type = PF_POOL_ROUNDROBIN; }
+               | ROUNDROBIN                    { $$.key = NULL; $$.type = 
+PF_POOL_ROUNDROBIN; }
                ;
 
 staticport     : /* empty */                   { $$ = 0; }

Reply via email to