diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2017-04-16 01:13:47 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2017-04-16 01:13:47 +0000 |
| commit | a07d9e9af4c3c1b77118463c9dddcea1183faa11 (patch) | |
| tree | 477f12c84745067c01d77a265e82483a4760d61a /contrib/ipfilter | |
| parent | b96a714f453e7f5aeeb3c2df2c3e1e8ad749f96f (diff) | |
Notes
Diffstat (limited to 'contrib/ipfilter')
| -rw-r--r-- | contrib/ipfilter/lib/parsefields.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/ipfilter/lib/parsefields.c b/contrib/ipfilter/lib/parsefields.c index b64db32d6b12..4d79078a905c 100644 --- a/contrib/ipfilter/lib/parsefields.c +++ b/contrib/ipfilter/lib/parsefields.c @@ -32,6 +32,10 @@ wordtab_t *parsefields(table, arg) fields = malloc(2 * sizeof(*fields)); } else { fields = reallocarray(fields, num + 1, sizeof(*fields)); + if (fields == NULL) { + perror("memory allocation error at __LINE__ in __FUNCTIOIN__ in __FILE__"); + abort(); + } } if (t == NULL) { |
