~ubuntu-branches/ubuntu/hardy/freeradius/hardy-proposed

« back to all changes in this revision

Viewing changes to src/modules/rlm_attr_filter/rlm_attr_filter.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-12-16 20:45:11 UTC
  • mfrom: (3.1.10 feisty)
  • Revision ID: james.westby@ubuntu.com-20061216204511-3pbbsu4s8jtehsor
Tags: 1.1.3-3
Fix POSIX compliance problem in init script.  Closes: #403384. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *                      before sending reply to the NAS/Server that sent
4
4
 *                      it to us.
5
5
 *
6
 
 * Version:      $Id: rlm_attr_filter.c,v 1.19 2004/05/15 14:51:26 mgriego Exp $
 
6
 * Version:      $Id: rlm_attr_filter.c,v 1.19.2.1 2005/08/11 21:06:38 aland Exp $
7
7
 *
8
8
 *   This program is is free software; you can redistribute it and/or modify
9
9
 *   it under the terms of the GNU General Public License, version 2 if the
41
41
#include        "radiusd.h"
42
42
#include        "modules.h"
43
43
 
44
 
static const char rcsid[] = "$Id: rlm_attr_filter.c,v 1.19 2004/05/15 14:51:26 mgriego Exp $";
 
44
static const char rcsid[] = "$Id: rlm_attr_filter.c,v 1.19.2.1 2005/08/11 21:06:38 aland Exp $";
45
45
 
46
46
struct attr_filter_instance {
47
47
        /* autz */
114
114
                    break;
115
115
#ifdef HAVE_REGEX_H
116
116
                case T_OP_REG_EQ:
117
 
                    regcomp(&reg, (char *)check_item->strvalue, 0);
 
117
                    regcomp(&reg, (char *)check_item->strvalue, REG_EXTENDED);
118
118
                    comp = regexec(&reg, (char *)reply_item->strvalue,
119
119
                                      0, NULL, 0);
120
120
                    regfree(&reg);
126
126
                    break;
127
127
 
128
128
                case T_OP_REG_NE:
129
 
                    regcomp(&reg, (char *)check_item->strvalue, 0);
 
129
                    regcomp(&reg, (char *)check_item->strvalue, REG_EXTENDED);
130
130
                    comp = regexec(&reg, (char *)reply_item->strvalue,
131
131
                                      0, NULL, 0);
132
132
                    regfree(&reg);