
vpnc at unix-ag
Jun 23, 2009, 8:42 PM
Post #1 of 1
(777 views)
Permalink
|
|
svn commit: vpnc r414 - /branches/vpnc-nortel/vpnc.c
|
|
Author: Antonio Borneo Date: Wed Jun 24 05:42:07 2009 New Revision: 414 Log: Code cleanup: remove duplicated code. Modified: branches/vpnc-nortel/vpnc.c Modified: branches/vpnc-nortel/vpnc.c ============================================================================== --- branches/vpnc-nortel/vpnc.c (original) +++ branches/vpnc-nortel/vpnc.c Wed Jun 24 05:42:07 2009 @@ -2586,16 +2586,12 @@ return 1; } - if (opt_vendor != VENDOR_NORTEL) { - /* Check the transaction type & message ID are OK. */ + /* Check the transaction type & message ID are OK. */ + if (opt_vendor != VENDOR_NORTEL) if (reject == 0 && r->message_id != msgid) reject = ISAKMP_N_INVALID_MESSAGE_ID; - if (reject == 0 && r->exchange_type != ISAKMP_EXCHANGE_MODECFG_TRANSACTION) - reject = ISAKMP_N_INVALID_EXCHANGE_TYPE; - } else { - if (reject == 0 && r->exchange_type != ISAKMP_EXCHANGE_MODECFG_TRANSACTION) - reject = ISAKMP_N_INVALID_EXCHANGE_TYPE; - } + if (reject == 0 && r->exchange_type != ISAKMP_EXCHANGE_MODECFG_TRANSACTION) + reject = ISAKMP_N_INVALID_EXCHANGE_TYPE; /* After the hash, expect an attribute block. */ _______________________________________________ vpnc-devel mailing list vpnc-devel [at] unix-ag https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|