conftest: Sanity check for proposal number modifier
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 16:15:26 +0000 (17:15 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 12 Nov 2018 16:36:22 +0000 (17:36 +0100)
src/conftest/hooks/set_proposal_number.c

index dd814ad..3fa5368 100644 (file)
@@ -122,7 +122,7 @@ METHOD(listener_t, message, bool,
                        enumerator->destroy(enumerator);
                }
                sa = sa_payload_create_from_proposals_v2(updated);
-               list->destroy_offset(list, offsetof(proposal_t, destroy));
+               DESTROY_OFFSET_IF(list, offsetof(proposal_t, destroy));
                updated->destroy_offset(updated, offsetof(proposal_t, destroy));
                message->add_payload(message, (payload_t*)sa);
        }