mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-04 08:23:12 +02:00
Fixed a module object bug involving static linking
This commit is contained in:
@@ -1119,3 +1119,4 @@ v- Fixed some bugreport stuff
|
||||
- Fixed bug in m_tkl_line and various m_line functions (was checking for wrong # of paras)
|
||||
- Recoded hooks to take advantage of the module object code
|
||||
- Fixed a memory leak in hooks
|
||||
- Fixed a bug with module objects involving static linking
|
||||
|
||||
@@ -46,8 +46,11 @@
|
||||
DLLFUNC int m_guest(aClient *cptr, aClient *sptr, int parc, char *parv[]);
|
||||
|
||||
/* Place includes here */
|
||||
|
||||
#ifdef DYNAMIC_LINKING
|
||||
Module *Mod_Handle = NULL;
|
||||
#else
|
||||
#define Mod_Handle NULl
|
||||
#endif
|
||||
#ifndef DYNAMIC_LINKING
|
||||
ModuleHeader m_guest_Header
|
||||
#else
|
||||
|
||||
@@ -52,7 +52,11 @@
|
||||
#endif
|
||||
#include "modules/scan.h"
|
||||
/* IRCd will fill with a pointer to this module */
|
||||
#ifdef DYNAMIC_LINKING
|
||||
Module *Mod_Handle = NULL;
|
||||
#else
|
||||
#define Mod_Handle NULL
|
||||
#endif
|
||||
struct SOCKADDR_IN Scan_endpoint;
|
||||
|
||||
static Scan_AddrStruct *Scannings = NULL;
|
||||
|
||||
@@ -68,7 +68,11 @@ static struct SOCKADDR_IN *xScan_endpoint = NULL;
|
||||
extern void Eadd_scan();
|
||||
extern struct SOCKADDR_IN Scan_endpoint;
|
||||
#endif
|
||||
#ifdef DYNAMIC_LINKING
|
||||
Module *Mod_Handle = NULL;
|
||||
#else
|
||||
#define Mod_Handle NULL
|
||||
#endif
|
||||
static Mod_SymbolDepTable modsymdep[] =
|
||||
{
|
||||
MOD_Dep(Eadd_scan, xEadd_scan, "src/modules/scan.so"),
|
||||
|
||||
@@ -66,7 +66,11 @@ extern struct SOCKADDR_IN Scan_endpoint;
|
||||
void scan_socks_scan(Scan_AddrStruct *sr);
|
||||
void scan_socks4_scan(Scan_AddrStruct *sr);
|
||||
void scan_socks5_scan(Scan_AddrStruct *sr);
|
||||
Module *Mod_Handle;
|
||||
#ifdef DYNAMIC_LINKING
|
||||
Module *Mod_Handle = NULL;
|
||||
#else
|
||||
#define Mod_Handle NULL
|
||||
#endif
|
||||
static Mod_SymbolDepTable modsymdep[] =
|
||||
{
|
||||
MOD_Dep(Eadd_scan, xEadd_scan, "src/modules/scan.so"),
|
||||
|
||||
Reference in New Issue
Block a user