Permalink
Browse files

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

…dation

wasn't checked.
  • Loading branch information...
1 parent 3b24407 commit e2d5ed5eca277bce794575404edf26723e05a967 sakane committed Aug 6, 2001
Showing with 3 additions and 2 deletions.
  1. +3 −2 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 */

0 comments on commit e2d5ed5

Please sign in to comment.