Module Name: src
Committed By: maxv
Date: Sat May 19 20:21:23 UTC 2018
Modified Files:
src/crypto/dist/ipsec-tools/src/racoon: oakley.c
Log Message:
Remove unused 'error' variables, it's obvious they should have no use.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/crypto/dist/ipsec-tools/src/racoon/oakley.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/dist/ipsec-tools/src/racoon/oakley.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/oakley.c:1.26 src/crypto/dist/ipsec-tools/src/racoon/oakley.c:1.27
--- src/crypto/dist/ipsec-tools/src/racoon/oakley.c:1.26 Sat May 19 20:14:56 2018
+++ src/crypto/dist/ipsec-tools/src/racoon/oakley.c Sat May 19 20:21:23 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: oakley.c,v 1.26 2018/05/19 20:14:56 maxv Exp $ */
+/* $NetBSD: oakley.c,v 1.27 2018/05/19 20:21:23 maxv Exp $ */
/* Id: oakley.c,v 1.32 2006/05/26 12:19:46 manubsd Exp */
@@ -786,7 +786,6 @@ oakley_compute_hash3(iph1, msgid, body)
{
vchar_t *buf = 0, *res = 0;
int len;
- int error = -1;
/* create buffer */
len = 1 + sizeof(u_int32_t) + body->l;
@@ -811,8 +810,6 @@ oakley_compute_hash3(iph1, msgid, body)
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -841,7 +838,6 @@ oakley_compute_hash1(iph1, msgid, body)
vchar_t *buf = NULL, *res = NULL;
char *p;
int len;
- int error = -1;
/* create buffer */
len = sizeof(u_int32_t) + body->l;
@@ -867,8 +863,6 @@ oakley_compute_hash1(iph1, msgid, body)
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -893,7 +887,6 @@ oakley_ph1hash_common(iph1, sw)
vchar_t *buf = NULL, *res = NULL, *bp;
char *p, *bp2;
int len, bl;
- int error = -1;
#ifdef HAVE_GSSAPI
vchar_t *gsstokens = NULL;
#endif
@@ -986,8 +979,6 @@ oakley_ph1hash_common(iph1, sw)
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH (%s) computed:\n",
iph1->side == INITIATOR ? "init" : "resp");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -1019,7 +1010,6 @@ oakley_ph1hash_base_i(iph1, sw)
vchar_t *hash = NULL; /* for signature mode */
char *p;
int len;
- int error = -1;
/* sanity check */
if (iph1->etype != ISAKMP_ETYPE_BASE) {
@@ -1133,8 +1123,6 @@ oakley_ph1hash_base_i(iph1, sw)
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH_I computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -1160,7 +1148,6 @@ oakley_ph1hash_base_r(iph1, sw)
vchar_t *hash = NULL;
char *p;
int len;
- int error = -1;
/* sanity check */
if (iph1->etype != ISAKMP_ETYPE_BASE) {
@@ -1259,8 +1246,6 @@ oakley_ph1hash_base_r(iph1, sw)
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH_R computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);