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/+/2118?usp=email
to review the following change.
Change subject: ssl_verify: drop dead retval in verify_user_pass_management()
......................................................................
ssl_verify: drop dead retval in verify_user_pass_management()
The function has no failure path since a4eeef17 ("Add function for
common env setting of verify user/pass calls") moved the username
check out of it. Return KMDA_SUCCESS directly.
Change-Id: I04c128a934e9a2e767394dbe82427df2ee886178
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/ssl_verify.c
1 file changed, 1 insertion(+), 4 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/18/2118/1
diff --git a/src/openvpn/ssl_verify.c b/src/openvpn/ssl_verify.c
index 0cdec1e..2423c30 100644
--- a/src/openvpn/ssl_verify.c
+++ b/src/openvpn/ssl_verify.c
@@ -1532,7 +1532,6 @@
static int
verify_user_pass_management(struct tls_session *session, const struct
user_pass *up)
{
- int retval = KMDA_ERROR;
const struct key_state *ks = &session->key[KS_PRIMARY]; /* primary key */
/* set username/password in private env space */
@@ -1546,9 +1545,7 @@
setenv_del(session->opt->es, "password");
- retval = KMDA_SUCCESS;
-
- return retval;
+ return KMDA_SUCCESS;
}
#endif /* ifdef ENABLE_MANAGEMENT */
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2118?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: I04c128a934e9a2e767394dbe82427df2ee886178
Gerrit-Change-Number: 2118
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