]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
initialize the reference count correctly
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 10 Jan 2011 04:08:07 +0000 (05:08 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 11 Jan 2011 00:17:40 +0000 (01:17 +0100)
src/libcharon/plugins/tnccs_11/messages/tnccs_error_msg.c

index 5a876e38105653aef14511926a4d6f275a43c215..d0df4e7ca87a5c2b09a079c18c599f12f61705cb 100644 (file)
@@ -120,6 +120,7 @@ tnccs_msg_t *tnccs_error_msg_create_from_node(xmlNodePtr node)
                        .get_message = _get_message,
                },
                .type = TNCCS_MSG_ERROR,
+               .ref = 1,
                .node = node,
                .error_type = TNCCS_ERROR_OTHER,
        );
@@ -165,6 +166,7 @@ tnccs_msg_t *tnccs_error_msg_create(tnccs_error_type_t type, char *msg)
                        .get_message = _get_message,
                },
                .type = TNCCS_MSG_ERROR,
+               .ref = 1,
                .node =  xmlNewNode(NULL, BAD_CAST "TNCC-TNCS-Message"),
                .error_type = type,
                .error_msg  = strdup(msg),