From db89b4b1527103455e1bd85839a88d614a402354 Mon Sep 17 00:00:00 2001 From: cypherpunks Date: Fri, 21 Sep 2018 04:57:26 +0000 Subject: rust/protover: fix null deref in protover_all_supported() Fortunately with the current callers it couldn't happen in practice. Fix on d1820c1516a31a149fc51a9e5126bf899e4c4e08. --- src/test/test_protover.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/test_protover.c') diff --git a/src/test/test_protover.c b/src/test/test_protover.c index fb374c728b..d1fc7752dd 100644 --- a/src/test/test_protover.c +++ b/src/test/test_protover.c @@ -259,6 +259,7 @@ test_protover_all_supported(void *arg) tt_ptr_op(msg, OP_EQ, NULL); // Some things we don't support + tt_assert(! protover_all_supported("Wombat=9", NULL)); tt_assert(! protover_all_supported("Wombat=9", &msg)); tt_str_op(msg, OP_EQ, "Wombat=9"); tor_free(msg); -- cgit v1.2.3-54-g00ecf