Skip to content

Commit

Permalink
fixed a return value.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakane committed Apr 4, 2001
1 parent cac41f6 commit 4001a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kame/kame/racoon/ipsec_doi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: ipsec_doi.c,v 1.131 2001/04/04 02:06:20 sakane Exp $ */
/* $KAME: ipsec_doi.c,v 1.132 2001/04/04 04:58:15 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -3505,7 +3505,7 @@ ipsecdoi_id2sockaddr(buf, saddr, prefixlen, ul_proto)

/* sanity check */
if (buf->l < alen)
return -1;
return ISAKMP_INTERNAL_ERROR;

/* get subnet mask length */
plen = 0;
Expand Down
4 changes: 2 additions & 2 deletions kame/kame/racoon/isakmp_quick.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: isakmp_quick.c,v 1.76 2001/04/04 02:21:54 sakane Exp $ */
/* $KAME: isakmp_quick.c,v 1.77 2001/04/04 04:58:15 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -1934,7 +1934,7 @@ get_proposal_r(iph2)
if (set_proposal_from_policy(iph2, sp_in, sp_out) < 0) {
plog(LLV_ERROR, LOCATION, NULL,
"failed to create saprop.\n");
return -1;
return ISAKMP_INTERNAL_ERROR;
}

return 0;
Expand Down

0 comments on commit 4001a7b

Please sign in to comment.