Change CBS_dup() to also sync the offset.
authordoug <doug@openbsd.org>
Tue, 23 Jun 2015 05:58:28 +0000 (05:58 +0000)
committerdoug <doug@openbsd.org>
Tue, 23 Jun 2015 05:58:28 +0000 (05:58 +0000)
commit6cb2edf4ea3adf0dfef7b7a700b0ccce2ab6e718
tree01963e181ed7399f16067630f1df32dfd88cc907
parent7ac2e2819a23da922a68ff59353591cec9e9c442
Change CBS_dup() to also sync the offset.

Previously, CBS_dup() had its own offset.  However, it is more consistent
to copy everything.

ok miod@ jsing@
lib/libssl/bs_cbs.c
lib/libssl/src/ssl/bs_cbs.c
regress/lib/libssl/bytestring/bytestringtest.c