mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Move assignment outside tt_assert in ssl unit tests. Appeases coverity.
This commit is contained in:
parent
b9e7329751
commit
a2006c0087
@ -108,7 +108,8 @@ getcert(void)
|
|||||||
|
|
||||||
name = X509_NAME_new();
|
name = X509_NAME_new();
|
||||||
tt_assert(name);
|
tt_assert(name);
|
||||||
tt_assert(NID_undef != (nid = OBJ_txt2nid("commonName")));
|
nid = OBJ_txt2nid("commonName");
|
||||||
|
tt_assert(NID_undef != nid);
|
||||||
tt_assert(0 != X509_NAME_add_entry_by_NID(
|
tt_assert(0 != X509_NAME_add_entry_by_NID(
|
||||||
name, nid, MBSTRING_ASC, (unsigned char*)"example.com",
|
name, nid, MBSTRING_ASC, (unsigned char*)"example.com",
|
||||||
-1, -1, 0));
|
-1, -1, 0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user