Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed to validate a certificate. the return value of certificate vali…

…dation

wasn't checked.
  • Loading branch information...
commit e2d5ed5eca277bce794575404edf26723e05a967 1 parent 3b24407
sakane authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 kame/kame/racoon/oakley.c
View
5 kame/kame/racoon/oakley.c
@@ -1,4 +1,4 @@
-/* $KAME: oakley.c,v 1.86 2001/07/17 05:02:50 sakane Exp $ */
+/* $KAME: oakley.c,v 1.87 2001/08/06 08:13:43 sakane Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -1283,7 +1283,8 @@ oakley_validate_auth(iph1)
}
/* compare ID payload and certificate name */
- if (iph1->rmconf->verify_cert && oakley_check_certid(iph1))
+ if (iph1->rmconf->verify_cert &&
+ (error = oakley_check_certid(iph1)) != 0)
return error;
/* verify certificate */
Please sign in to comment.
Something went wrong with that request. Please try again.