~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to clamav-milter/whitelist.c

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-01 11:06:17 UTC
  • mfrom: (0.35.37 sid)
  • Revision ID: package-import@ubuntu.com-20140201110617-33h2xxk09dep0ui4
Tags: 0.98.1+dfsg-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
  - Add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C)2008 Sourcefire, Inc.
 
2
 *  Copyright (C)2008-2013 Sourcefire, Inc.
3
3
 *
4
4
 *  Author: aCaB <acab@clamav.net>
5
5
 *
151
151
                regex = realloc(regex, rxsize + 2048);
152
152
                if(!regex) {
153
153
                    logg("!Cannot allocate memory for SkipAuthenticated file\n");
 
154
                    fclose(f);
154
155
                    return 1;
155
156
                }
156
157
                rxavail = 2048;
182
183
        }
183
184
        if(rxavail < 4 && !(regex = realloc(regex, rxsize + 4))) {
184
185
            logg("!Cannot allocate memory for SkipAuthenticated file\n");
 
186
            fclose(f);
185
187
            return 1;
186
188
        }
187
189
        regex[rxused-1] = ')';