Copy the type value as well as the rest.

This commit is contained in:
relyea%netscape.com 2002-06-24 21:57:27 +00:00
Родитель 360a5def46
Коммит c951743a6e
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -34,7 +34,7 @@
/* /*
* Support routines for SECItem data structure. * Support routines for SECItem data structure.
* *
* $Id: secitem.c,v 1.6 2002-02-21 22:41:44 ian.mcgreer%sun.com Exp $ * $Id: secitem.c,v 1.7 2002-06-24 21:57:27 relyea%netscape.com Exp $
*/ */
#include "seccomon.h" #include "seccomon.h"
@ -188,6 +188,7 @@ SECITEM_DupItem(const SECItem *from)
} }
to->len = from->len; to->len = from->len;
to->type = from->type;
PORT_Memcpy(to->data, from->data, to->len); PORT_Memcpy(to->data, from->data, to->len);
return(to); return(to);