diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-01-10 05:08:07 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-01-11 01:17:40 +0100 |
commit | 8d0d0f0fe9fc9cb60a3dba680c21b9faedf7073a (patch) | |
tree | 70b4224d4dc4a55cc15bb44aa8f98bc3969a9862 /src | |
parent | f33966fe8f3fba72b77ad8a3a162db4c6bf1ba97 (diff) | |
download | strongswan-8d0d0f0fe9fc9cb60a3dba680c21b9faedf7073a.tar.bz2 strongswan-8d0d0f0fe9fc9cb60a3dba680c21b9faedf7073a.tar.xz |
initialize the reference count correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/tnccs_11/messages/tnccs_error_msg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/plugins/tnccs_11/messages/tnccs_error_msg.c b/src/libcharon/plugins/tnccs_11/messages/tnccs_error_msg.c index 5a876e381..d0df4e7ca 100644 --- a/src/libcharon/plugins/tnccs_11/messages/tnccs_error_msg.c +++ b/src/libcharon/plugins/tnccs_11/messages/tnccs_error_msg.c @@ -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), |