aboutsummaryrefslogtreecommitdiff
path: root/src/proone-htbthost.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-15 20:04:13 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-15 20:04:13 +0930
commitca0c9a60b0f7dc823ff01f77fc00458ab4a13532 (patch)
treef361382866540b5666a74084133cd2fb51f16e71 /src/proone-htbthost.c
parentd06a39d44741355e96ee96d8f760b995f35abaed (diff)
* Code consistency - take *_param_t as pointer
* Fix *_param_t leak and memory error
Diffstat (limited to 'src/proone-htbthost.c')
-rw-r--r--src/proone-htbthost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proone-htbthost.c b/src/proone-htbthost.c
index a407253..96ceb9f 100644
--- a/src/proone-htbthost.c
+++ b/src/proone-htbthost.c
@@ -468,7 +468,7 @@ int main (const int argc, const char **args) {
param.blackhole = open("/dev/null", O_WRONLY);
w = wkr_arr + 1;
- htbt = prne_alloc_htbt(w, param);
+ htbt = prne_alloc_htbt(w, &param);
w->pth = pth_spawn(PTH_ATTR_DEFAULT, w->entry, w->ctx);
prne_assert(htbt != NULL && w->pth != NULL);