Bugzilla Bug 302262: Check for SECITEM_AllocItem failure in

MPINT_TO_SECITEM. r=nelsonb.
This commit is contained in:
wtchang%redhat.com 2005-08-01 22:43:54 +00:00
Родитель a82541564d
Коммит b5b833a9c0
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -48,6 +48,7 @@
#define MPINT_TO_SECITEM(mp, it, arena) \
SECITEM_AllocItem(arena, (it), mp_unsigned_octet_size(mp)); \
if ((it)->data == NULL) {err = MP_MEM; goto cleanup;} \
err = mp_to_unsigned_octets(mp, (it)->data, (it)->len); \
if (err < 0) goto cleanup; else err = MP_OKAY;