summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-09 10:11:19 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-09 10:11:19 +0200
commit2318607f3dad6e7a7009385917dafe6d02654189 (patch)
tree5dbd9ede9f5300485f492783ccddf90c3d34a2ae
parent8c34df998d95dd17f6349e4032aa84f5945d3a5e (diff)
downloadlibtasn1-2318607f3dad6e7a7009385917dafe6d02654189.tar.gz
libtasn1-2318607f3dad6e7a7009385917dafe6d02654189.tar.bz2
libtasn1-2318607f3dad6e7a7009385917dafe6d02654189.zip
When duplicating a node, keep the DER start and end information.
-rw-r--r--lib/structure.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/structure.c b/lib/structure.c
index acd2f2e..ffb6aa5 100644
--- a/lib/structure.c
+++ b/lib/structure.c
@@ -423,6 +423,8 @@ _asn1_copy_structure3 (asn1_node source_node)
_asn1_set_down (p_d_prev, p_d);
continue;
}
+ p_d->start = p_s->start;
+ p_d->end = p_s->end;
}
if (p_s == source_node)