summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-11-06 15:13:23 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-11-06 15:13:23 +0000
commit1edee22a4547160bcbf762d4c38553148fc4665a (patch)
tree102218f31d0da2f806e9332f89af293430c43d50 /sbin/pfctl
parent5487d12b38ebe9c17ac42dfbbba2da4bd9b9768c (diff)
need calloc here
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index f73c11bebcf..1d75b894ba4 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.418 2003/11/06 14:02:19 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.419 2003/11/06 15:13:22 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -3312,7 +3312,7 @@ expand_label_str(char *label, size_t len, const char *srch, const char *repl)
char *tmp;
char *p, *q;
- if ((tmp = malloc(len)) == NULL)
+ if ((tmp = calloc(1, len)) == NULL)
err(1, "expand_label_str");
p = q = label;
while ((q = strstr(p, srch)) != NULL) {