return with TNC_RESULT_SUCCESS
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 7 Dec 2011 16:36:04 +0000 (17:36 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 7 Dec 2011 16:36:04 +0000 (17:36 +0100)
src/libcharon/plugins/tnc_imc/tnc_imc_bind_function.c

index 1df1078..95293c9 100644 (file)
@@ -125,12 +125,13 @@ TNC_Result TNC_TNCC_SendMessageLong(TNC_IMCID imc_id,
  */
 TNC_Result TNC_TNCC_ReserveAdditionalIMCID(TNC_IMCID imc_id, TNC_UInt32 *new_id)
 {
-       if (!tnc->imcs->reserve_id(tnc->imcs, imc_id, new_id))
+       if (tnc->imcs->reserve_id(tnc->imcs, imc_id, new_id))
        {
-               DBG1(DBG_TNC, "ignoring ReserveAdditionalIMCID() from unregistered IMC %u",
-                                          imc_id);
-               return TNC_RESULT_INVALID_PARAMETER;
+               return TNC_RESULT_SUCCESS;
        }
+       DBG1(DBG_TNC, "ignoring ReserveAdditionalIMCID() from unregistered IMC %u",
+                                  imc_id);
+       return TNC_RESULT_INVALID_PARAMETER;
 }
 
 /**