Skip to content

Commit

Permalink
Merge pull request #2506 from pqarmitage/updates
Browse files Browse the repository at this point in the history
Fix segfault due to non-existant iproute2 directories with Busybox
  • Loading branch information
pqarmitage authored Nov 10, 2024
2 parents 48dbf3d + 042dc49 commit 130368b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ For ipset support
To build using clang/llvm
apt install clang llvm

Alpine Linux
Alpine Linux (apk add ...)
------------
For building packages
automake autoconf alpine-sdk
The following libraries need to be installed:
linux-headers iptables-dev ipset-dev libnl3-dev musl-dev libnftnl-dev and openssl-dev or libressl-dev
For magic file identification support:
Expand Down
6 changes: 4 additions & 2 deletions lib/rttables.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,9 @@ initialise_list(list_head_t *l, const char *file_name, const rt_entry_t *default

read_file(path, l, max);
}

closedir(dir);
}
closedir(dir);
#endif

/* Now read the entries in the IPROUTE_ETC_DIR subdirectory */
Expand All @@ -425,8 +426,9 @@ initialise_list(list_head_t *l, const char *file_name, const rt_entry_t *default

read_file(path, l, max);
}

closedir(dir);
}
closedir(dir);

FREE_PTR(path);
#ifdef IPROUTE_USR_DIR
Expand Down

0 comments on commit 130368b

Please sign in to comment.