From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Sven Eckelmann <sven@narfation.org>
Subject: [B.A.T.M.A.N.] [PATCH 08/11] batctl: Fix error handling jump in interface when batadv not loaded
Date: Tue, 10 Sep 2013 23:11:59 +0200 [thread overview]
Message-ID: <1378847522-13776-9-git-send-email-sven@narfation.org> (raw)
In-Reply-To: <1378847522-13776-1-git-send-email-sven@narfation.org>
The jump to the path_buffer free must be taken when batman-adv was not loaded
because it has to free path_buff which was allocated earlier
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
sys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys.c b/sys.c
index 2fcd67b..7539f76 100644
--- a/sys.c
+++ b/sys.c
@@ -230,7 +230,7 @@ int interface(char *mesh_iface, int argc, char **argv)
if (!file_exists(module_ver_path)) {
fprintf(stderr, "Error - batman-adv module has not been loaded\n");
- goto err;
+ goto err_buff;
}
fprintf(stderr, "Error - interface type not supported by batman-adv: %s\n", argv[i]);
--
1.8.4.rc3
next prev parent reply other threads:[~2013-09-10 21:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 21:11 [B.A.T.M.A.N.] batctl: Debian patches for 2013.3.0-2 Sven Eckelmann
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 01/11] batctl: Fix possible buffer overflow when using strncat Sven Eckelmann
2013-09-11 10:49 ` Marek Lindner
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 02/11] batctl: Fix inconsistent use of _GNU_SOURCE Sven Eckelmann
2013-09-11 10:53 ` Marek Lindner
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 03/11] batctl: Avoid assigning const buffer to non-const pointer Sven Eckelmann
2013-09-11 10:56 ` Marek Lindner
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 04/11] batctl: Mark all local functions as static Sven Eckelmann
2013-09-11 10:58 ` Marek Lindner
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 05/11] batctl: Add include guards to avoid redundant declarations or include loops Sven Eckelmann
2013-09-11 11:33 ` Marek Lindner
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 06/11] batctl: Remove legacy types u64 and caddr_t Sven Eckelmann
2013-09-13 10:51 ` Marek Lindner
2013-09-10 21:11 ` [B.A.T.M.A.N.] [PATCH 07/11] batctl: Add missing includes and remove unused includes Sven Eckelmann
2013-09-10 21:11 ` Sven Eckelmann [this message]
2013-09-13 10:58 ` [B.A.T.M.A.N.] [PATCH 08/11] batctl: Fix error handling jump in interface when batadv not loaded Marek Lindner
2013-09-10 21:12 ` [B.A.T.M.A.N.] [PATCH 09/11] batctl: Fix type of new neighbor buffer in _seqno_trace_neigh_add Sven Eckelmann
2013-09-13 11:22 ` Marek Lindner
2013-09-10 21:12 ` [B.A.T.M.A.N.] [PATCH 10/11] batctl: Don't fail rebuild when header is removed Sven Eckelmann
2013-09-13 11:24 ` Marek Lindner
2013-09-10 21:12 ` [B.A.T.M.A.N.] [PATCH 11/11] batctl: Don't use hyphen for parameter in manpage Sven Eckelmann
2013-09-13 11:26 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378847522-13776-9-git-send-email-sven@narfation.org \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox