Fixed proposal numbering check in sa_payload
authorMartin Willi <martin@revosec.ch>
Mon, 21 Nov 2011 08:10:50 +0000 (09:10 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:44 +0000 (17:30 +0100)
src/libcharon/encoding/payloads/sa_payload.c

index 29c671d..7433f1a 100644 (file)
@@ -175,16 +175,6 @@ METHOD(payload_t, verify, status_t,
                current_number = substruct->get_proposal_number(substruct);
                if (current_number < expected_number)
                {
-                       if (current_number != expected_number + 1)
-                       {
-                               DBG1(DBG_ENC, "proposal number is %d, expected %d or %d",
-                                        current_number, expected_number, expected_number + 1);
-                               status = FAILED;
-                               break;
-                       }
-               }
-               else if (current_number < expected_number)
-               {
                        DBG1(DBG_ENC, "proposal number smaller than previous");
                        status = FAILED;
                        break;