]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Prevent string from being released before it's returned
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 4 Oct 2023 23:31:11 +0000 (17:31 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 4 Oct 2023 23:32:11 +0000 (17:32 -0600)
src/rrdp/rrdp_loader.c

index 875da4fde56b78d63db106e54b6f78370bdfeccb..449d8ed18d499db33f94405a10c446af2f1869c9 100644 (file)
@@ -33,7 +33,7 @@ get_metadata(struct rpki_uri *uri, struct notification_metadata *result)
                return error;
 
        *result = notification.meta;
-
+       memset(&notification.meta, 0, sizeof(notification.meta));
        update_notification_destroy(&notification);
        return 0;
 }