Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed the behavior when the "unique" level policy is used.

reported by <yvan.vanhullebus@netasq.com>
  • Loading branch information...
commit 0006cc24338107b29c5ce4007fd8e10a53187c16 1 parent fd56a3c
sakane authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 kame/kame/racoon/proposal.c
12 kame/kame/racoon/proposal.c
View
@@ -1,4 +1,4 @@
-/* $KAME: proposal.c,v 1.47 2002/04/16 04:10:23 sakane Exp $ */
+/* $KAME: proposal.c,v 1.48 2002/05/07 09:32:50 sakane Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -983,7 +983,10 @@ set_proposal_from_policy(iph2, sp_main, sp_sub)
else
newpr->encmode = encmodesv;
- newpr->reqid_out = req->saidx.reqid;
+ if (iph2->side == INITIATOR)
+ newpr->reqid_out = req->saidx.reqid;
+ else
+ newpr->reqid_in = req->saidx.reqid;
if (set_satrnsbysainfo(newpr, iph2->sainfo) < 0) {
plog(LLV_ERROR, LOCATION, NULL,
@@ -1002,7 +1005,10 @@ set_proposal_from_policy(iph2, sp_main, sp_sub)
req = sp_sub->req;
pr = newpp->head;
while (req && pr) {
- pr->reqid_in = req->saidx.reqid;
+ if (iph2->side == INITIATOR)
+ pr->reqid_in = req->saidx.reqid;
+ else
+ pr->reqid_out = req->saidx.reqid;
pr = pr->next;
req = req->next;
}
Please sign in to comment.
Something went wrong with that request. Please try again.