Fix two unused assignments
PATCH 1/1 Fix two unused assignments
A fallout of my memleak investigation. These are not leaks, we just assign a value that is never read before overwritten. Not critical, but since I already stumbled over it...
Change-Id I761ea3d289f49a20e42a3d1bfccebce3c7447afe
Signed-off-by Frank Lichtenheld <[email protected]...>
--- src/openvpn/push.c | 1 - src/openvpn/tun.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-)
src/openvpn/push.c +0 -1
@@ -713,7 +713,6 @@ send_push_options(struct context *c, struct buffer *buf, {struct push_entry *e = push_list->head; - e = push_list->head;while (e) {if (e->enable)
src/openvpn/tun.c +1 -2
@@ -4337,7 +4337,6 @@ get_unspecified_device_guid(const int device_number, struct gc_arena *gc) {const struct tap_reg *tap_reg = tap_reg_src; -struct buffer ret =clear_buf ();struct buffer actual =clear_buf ();int i;
@@ -4381,7 +4380,7 @@ get_unspecified_device_guid(const int device_number, }/* Save GUID for return value */ - ret =alloc_buf_gc (256 , gc); +struct buffer ret =alloc_buf_gc (256 , gc);buf_printf (&ret,"%s" , tap_reg->guid);if (windows_driver !=NULL ) {
Signature · 1 line
2.34.1
Acked-by Gert Doering <[email protected]...>
"Quite obvious, if you look at it" :-) - since one of this is Windows, I have at least compile-tested this on MinGW.
Your patch has been applied to the master and release/2.6 branch.
commit b5cf76cbdc0d7ef2817b71f4611d99455e2d48ea (master) commit eb9fffe64a095a881db848839aef6960e1402ca6 (release/2.6)
Author: Frank Lichtenheld Date: Mon May 15 17:54:07 2023 +0200
Fix two unused assignments
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg26662.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering