sshbuf_fixed: the parent buf is not mutable

This commit is contained in:
Markus Friedl
2012-10-10 20:36:20 +02:00
parent 371a869f0a
commit 21f1618b17

View File

@@ -73,6 +73,9 @@ sshbuf_fixed(void)
ASSERT_PTR_EQ(sshbuf_parent(p1), NULL);
ASSERT_PTR_EQ(sshbuf_parent(p2), p1);
ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1));
ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
ASSERT_PTR_NE(sshbuf_ptr(p2), NULL);
ASSERT_PTR_EQ(sshbuf_mutable_ptr(p1), NULL);
ASSERT_PTR_EQ(sshbuf_mutable_ptr(p2), NULL);
ASSERT_SIZE_T_EQ(sshbuf_len(p1), sshbuf_len(p2));
ASSERT_INT_EQ(sshbuf_get_u8(p2, &c), 0);
@@ -115,5 +118,3 @@ sshbuf_fixed(void)
sshbuf_free(p2);
sshbuf_free(p1);
}