summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-11-18 14:43:10 +0100
committerDave Barach <openvpp@barachs.net>2016-11-19 16:11:05 +0000
commitc008ee186b13a1246f265372679f5a80970387b5 (patch)
treead120a1215f878540550ba86fb148a6075a01c07
parenteccf509a31519747c2f4653a5ec2a94cc299860c (diff)
pg: avoid possible buffer leak
Change-Id: Iad1a4028d7c3d603e644db9f8a743b92fc2a4dba Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vnet/vnet/pg/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/pg/output.c b/vnet/vnet/pg/output.c
index 64a0b7b9d92..3d1f2660e20 100644
--- a/vnet/vnet/pg/output.c
+++ b/vnet/vnet/pg/output.c
@@ -70,7 +70,7 @@ pg_output (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
pcap_write (&pif->pcap_main);
}
- vlib_buffer_free_no_next (vm, vlib_frame_args (frame), n_buffers);
+ vlib_buffer_free (vm, vlib_frame_args (frame), n_buffers);
if (PREDICT_FALSE (pif->lockp != 0))
*pif->lockp = 0;
return n_buffers;
2'>logtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-vault-aws-secret-backend/main.tf
blob: a65c390792f442f4bcff6127132000a87f75f69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
resource "vault_aws_secret_backend" "aws" {
  access_key = var.aws_access_key
  secret_key = var.aws_secret_key
  path       = "${var.name}-path"

  default_lease_ttl_seconds = "0"
  max_lease_ttl_seconds     = "0"
}

resource "vault_aws_secret_backend_role" "admin" {
  backend         = vault_aws_secret_backend.aws.path
  name            = "${var.name}-role"
  credential_type = "iam_user"

  policy_document = <<EOF
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "iam:*", "ec2:*"
      ],
      "Resource": "*"
    }
  ]
}
EOF
}

output "backend" {
  value = vault_aws_secret_backend.aws.path
}

output "role" {
  value = vault_aws_secret_backend_role.admin.name
}