diff --git a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c index c53ec297..4d26095c 100644 --- a/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c +++ b/src/tcpedit/plugins/dlt_jnpr_ether/jnpr_ether.c @@ -164,8 +164,10 @@ dlt_jnpr_ether_cleanup(tcpeditdlt_t *ctx) jnpr_ether_config_t *config; config = (jnpr_ether_config_t *)ctx->encoder->config; - if (config->subctx != NULL) + if (config->subctx != NULL) { + ctx->decoded_extra = NULL; tcpedit_dlt_cleanup(config->subctx); + } safe_free(plugin->config); plugin->config = NULL; plugin->config_size = 0;