Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2344?usp=email
to review the following change.
Change subject: push: remove dead code
......................................................................
push: remove dead code
- push_option_ex(): drop the "enable" parameter; it was ignored and
every caller passed true.
- push_remove_option(): drop the NULL check on o, already dereferenced
by the ifconfig/ifconfig-ipv6 checks above it.
- receive_auth_failed(): drop a repeated no_advance = true and a BLEN()
check implied by the preceding "CRV1:" prefix match.
Change-Id: I0f659eb20441edd411ec13f4d09f434141b2da32
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/push.c
1 file changed, 6 insertions(+), 7 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/44/2344/1
diff --git a/src/openvpn/push.c b/src/openvpn/push.c
index eb11107..63637c2 100644
--- a/src/openvpn/push.c
+++ b/src/openvpn/push.c
@@ -85,7 +85,6 @@
{
/* SOFT-SIGUSR1 -- Auth failure error */
register_signal(c->sig, SIGUSR1, "auth-failure (auth-token)");
- c->options.no_advance = true;
}
else
{
@@ -117,7 +116,7 @@
/*
* Save the dynamic-challenge text even when management is defined
*/
- if (authfail_extended && buf_string_match_head_str(&buf, "CRV1:") &&
BLEN(&buf))
+ if (authfail_extended && buf_string_match_head_str(&buf, "CRV1:"))
{
ssl_put_auth_challenge(CBSTR(&buf));
}
@@ -931,7 +930,7 @@
}
static void
-push_option_ex(struct gc_arena *gc, struct push_list *push_list, const char
*opt, bool enable,
+push_option_ex(struct gc_arena *gc, struct push_list *push_list, const char
*opt,
msglvl_t msglevel)
{
if (!string_class(opt, CC_ANY, CC_COMMA))
@@ -962,7 +961,7 @@
void
push_option(struct options *o, const char *opt, msglvl_t msglevel)
{
- push_option_ex(&o->gc, &o->push_list, opt, true, msglevel);
+ push_option_ex(&o->gc, &o->push_list, opt, msglevel);
}
void
@@ -974,7 +973,7 @@
push_reset(o);
while (e)
{
- push_option_ex(&o->gc, &o->push_list, string_alloc(e->option,
&o->gc), true, M_FATAL);
+ push_option_ex(&o->gc, &o->push_list, string_alloc(e->option,
&o->gc), M_FATAL);
e = e->next;
}
}
@@ -1002,7 +1001,7 @@
{
return false;
}
- push_option_ex(gc, push_list, string_alloc(tmp, gc), true, msglevel);
+ push_option_ex(gc, push_list, string_alloc(tmp, gc), msglevel);
return true;
}
@@ -1031,7 +1030,7 @@
return;
}
- if (o && o->push_list.head)
+ if (o->push_list.head)
{
struct push_entry *e = o->push_list.head;
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2344?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0f659eb20441edd411ec13f4d09f434141b2da32
Gerrit-Change-Number: 2344
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel