Repository : ssh://git@open-mesh.org/batctl
On branch : maint
commit 08e9bd5d0b40542a8b39cf371e8c6856057e6241 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
08e9bd5d0b40542a8b39cf371e8c6856057e6241 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]);