Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: vpnc: devel

svn commit: vpnc r436 - /branches/vpnc-nortel/vpnc.c

 

 

vpnc devel RSS feed   Index | Next | Previous | View Threaded


vpnc at unix-ag

Sep 6, 2009, 8:20 AM

Post #1 of 1 (368 views)
Permalink
svn commit: vpnc r436 - /branches/vpnc-nortel/vpnc.c

Author: Antonio Borneo
Date: Sun Sep 6 17:20:19 2009
New Revision: 436

Log:
Merge in Nortel branch the commit r386 by Maurice Massar.
From original comment:
drop some useless code from do_phase2_qm

This merge does not affect Nortel-specific code.

Modified:
branches/vpnc-nortel/vpnc.c

Modified: branches/vpnc-nortel/vpnc.c
==============================================================================
--- branches/vpnc-nortel/vpnc.c (original)
+++ branches/vpnc-nortel/vpnc.c Sun Sep 6 17:20:19 2009
@@ -3110,7 +3110,7 @@
if (opt_vendor != VENDOR_NORTEL) {
uint32_t msgid;
int reject;
- uint8_t *p_flat = NULL, *realiv = NULL, realiv_msgid[4];
+ uint8_t *p_flat = NULL;
size_t p_size = 0;
int i;

@@ -3160,12 +3160,6 @@
sendrecv_phase2(s, rp, ISAKMP_EXCHANGE_IKE_QUICK,
msgid, 0, &p_flat, &p_size, 0, 0, 0, 0);

- if (realiv == NULL) {
- realiv = xallocc(s->ike.ivlen);
- memcpy(realiv, s->ike.current_iv, s->ike.ivlen);
- memcpy(realiv_msgid, s->ike.current_iv_msgid, 4);
- }
-
DEBUGTOP(2, printf("S7.3 QM_packet2 validate type\n"));
reject = unpack_verify_phase2(s, r_packet, r_length, &r, nonce_i, sizeof(nonce_i)); /* FIXME: LEAK */

@@ -3185,8 +3179,6 @@
lifetime_ipsec_process(s, r->payload->next->u.n.attributes);
else
DEBUG(2, printf("got unknown lifetime notice, ignoring..\n"));
- memcpy(s->ike.current_iv, realiv, s->ike.ivlen);
- memcpy(s->ike.current_iv_msgid, realiv_msgid, 4);
continue;
}
}
@@ -3203,7 +3195,6 @@
reject = ISAKMP_N_INVALID_PAYLOAD_TYPE;

free(p_flat);
- free(realiv);

break;
}

_______________________________________________
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/

vpnc devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.