summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-08-16 21:22:56 +0200
committerMaria Matejka <mq@ucw.cz>2020-05-01 15:19:12 +0200
commit5f60d14edeb48824d28e6393e7eb1aa50d5f2cd1 (patch)
treea203fd2b58cc37a722139ac713d5b30835859e8c /proto
parentb7482209065a03c3186d74e5e4129539ce7a3ce4 (diff)
RPKI: fixed rare va_list leak
Diffstat (limited to 'proto')
-rw-r--r--proto/rpki/packets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/rpki/packets.c b/proto/rpki/packets.c
index 59a5efaf..e9d24fb8 100644
--- a/proto/rpki/packets.c
+++ b/proto/rpki/packets.c
@@ -1011,6 +1011,7 @@ rpki_send_error_pdu(struct rpki_cache *cache, const enum pdu_error_type error_co
{
va_start(args, fmt);
msg_len = bvsnprintf(msg, sizeof(msg), fmt, args) + 1;
+ va_end(args);
}
u32 pdu_size = 16 + err_pdu_len + msg_len;