[strongSwan-dev] [PATCH] Remove duplicate code

Thomas Jarosch thomas.jarosch at intra2net.com
Fri Nov 18 19:34:17 CET 2011


Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch at intra2net.com>
---
 src/libcharon/encoding/payloads/sa_payload.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/libcharon/encoding/payloads/sa_payload.c b/src/libcharon/encoding/payloads/sa_payload.c
index 89464ac..4751b56 100644
--- a/src/libcharon/encoding/payloads/sa_payload.c
+++ b/src/libcharon/encoding/payloads/sa_payload.c
@@ -122,12 +122,6 @@ METHOD(payload_t, verify, status_t,
 				break;
 			}
 		}
-		else if (current_number < expected_number)
-		{
-			DBG1(DBG_ENC, "proposal number smaller than previous");
-			status = FAILED;
-			break;
-		}
 
 		status = substruct->payload_interface.verify(&substruct->payload_interface);
 		if (status != SUCCESS)
-- 
1.7.6.4





More information about the Dev mailing list