From: Alberto Leiva Popper Date: Wed, 4 Oct 2023 23:31:11 +0000 (-0600) Subject: Prevent string from being released before it's returned X-Git-Tag: 1.6.0~46 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=eda53d95efb479599e9b050a17797b675abce7f9;p=thirdparty%2FFORT-validator.git Prevent string from being released before it's returned --- diff --git a/src/rrdp/rrdp_loader.c b/src/rrdp/rrdp_loader.c index 875da4fd..449d8ed1 100644 --- a/src/rrdp/rrdp_loader.c +++ b/src/rrdp/rrdp_loader.c @@ -33,7 +33,7 @@ get_metadata(struct rpki_uri *uri, struct notification_metadata *result) return error; *result = notification.meta; - + memset(¬ification.meta, 0, sizeof(notification.meta)); update_notification_destroy(¬ification); return 0; }