From 750c7b718aa5676f4e8e53f85874d1cc4aaa6b53 Mon Sep 17 00:00:00 2001 From: OJ <oj@buffered.io> Date: Fri, 18 Oct 2013 07:36:54 +1000 Subject: [PATCH] Fix invalid thread_create calls on posix I'm such a noob. My grep-fu was weak with this one. --- c/meterpreter/source/common/arch/posix/scheduler.c | 2 +- c/meterpreter/source/extensions/networkpug/networkpug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/meterpreter/source/common/arch/posix/scheduler.c b/c/meterpreter/source/common/arch/posix/scheduler.c index 12e26dec..d419ca72 100644 --- a/c/meterpreter/source/common/arch/posix/scheduler.c +++ b/c/meterpreter/source/common/arch/posix/scheduler.c @@ -91,7 +91,7 @@ DWORD scheduler_initialize( Remote * remote ) pthread_mutex_init(&scheduler_mutex, NULL); pthread_cond_init(&scheduler_cond, NULL); - scheduler_thread = thread_create(scheduler_run, remote, NULL); + scheduler_thread = thread_create(scheduler_run, remote, NULL, NULL); if(! scheduler_thread) { return ENOMEM; } diff --git a/c/meterpreter/source/extensions/networkpug/networkpug.c b/c/meterpreter/source/extensions/networkpug/networkpug.c index d7277aa5..59e56c66 100644 --- a/c/meterpreter/source/extensions/networkpug/networkpug.c +++ b/c/meterpreter/source/extensions/networkpug/networkpug.c @@ -324,7 +324,7 @@ DWORD request_networkpug_start(Remote *remote, Packet *packet) np->remote = remote; np->pcap = pcap_open_live(interface, MAX_MTU, 1, 1000, errbuf); // xxx, add in filter support - np->thread = thread_create((THREADFUNK) networkpug_thread, np, remote); + np->thread = thread_create((THREADFUNK) networkpug_thread, np, remote, NULL); chops.native.context = np; chops.native.write = networkpug_channel_write;