mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-12 04:12:05 +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:
parent
719dbe2b51
commit
750c7b718a
c/meterpreter/source
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user