1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-04-18 07:11:12 +02:00

Fix invalid thread_create calls on posix

I'm such a noob. My grep-fu was weak with this one.
This commit is contained in:
OJ 2013-10-18 07:36:54 +10:00
parent 719dbe2b51
commit 750c7b718a
2 changed files with 2 additions and 2 deletions
c/meterpreter/source
common/arch/posix
extensions/networkpug

@ -91,7 +91,7 @@ DWORD scheduler_initialize( Remote * remote )
pthread_mutex_init(&scheduler_mutex, NULL); pthread_mutex_init(&scheduler_mutex, NULL);
pthread_cond_init(&scheduler_cond, 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) { if(! scheduler_thread) {
return ENOMEM; return ENOMEM;
} }

@ -324,7 +324,7 @@ DWORD request_networkpug_start(Remote *remote, Packet *packet)
np->remote = remote; np->remote = remote;
np->pcap = pcap_open_live(interface, MAX_MTU, 1, 1000, errbuf); np->pcap = pcap_open_live(interface, MAX_MTU, 1, 1000, errbuf);
// xxx, add in filter support // 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.context = np;
chops.native.write = networkpug_channel_write; chops.native.write = networkpug_channel_write;