Repository : ssh://git@open-mesh.org/batctl
On branch : next
commit 2b8d81caf4aad4f0e73d5157ff9b963512197b55 Author: Sven Eckelmann sven@narfation.org Date: Tue Sep 10 23:11:59 2013 +0200
batctl: Fix error handling jump in interface when batadv not loaded
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 Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
2b8d81caf4aad4f0e73d5157ff9b963512197b55 sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys.c b/sys.c index 3258105..7c694a2 100644 --- a/sys.c +++ b/sys.c @@ -237,7 +237,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]);