Exempt ignored PA-TNC attributes from error handling
[strongswan.git] / src / libimcv / pa_tnc / pa_tnc_msg.c
index d9b4417..ea4dee9 100644 (file)
@@ -226,7 +226,14 @@ METHOD(pa_tnc_msg_t, process, status_t,
                                                        reader, FALSE, &offset, this->encoding, &error);
                if (!attr)
                {
-                       goto err;
+                       if (error)
+                       {
+                               goto err;
+                       }
+                       else
+                       {
+                               continue;
+                       }
                }
                attr_value = attr->get_value(attr);
                attr_type  = attr->get_type(attr);