summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-26 21:31:04 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-04-26 21:31:04 +0000
commitf11450045c0e509356ecf010e81848cc77a8d817 (patch)
treee2b8e5b5b47311b620a8e3c059430b6143b40111 /src
parent06e92f869c5256bd2a1f7e3f631a65c66936a053 (diff)
- Backported -r1872 [Fixed broken compile with libGeoIP disabled ]
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1873 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r--src/resv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resv.c b/src/resv.c
index 7600ccd..99861f9 100644
--- a/src/resv.c
+++ b/src/resv.c
@@ -85,10 +85,12 @@ create_resv(const char *name, const char *reason, const dlink_list *list)
if (strlen(s) == 2 && IsAlpha(*(s + 1) && IsAlpha(*(s + 2))))
{
+#ifdef HAVE_LIBGEOIP
exptr = MyMalloc(sizeof(*exptr));
exptr->name = xstrdup(s);
exptr->coid = GeoIP_id_by_code(s);
dlinkAdd(exptr, &exptr->node, &conf->exempt_list);
+#endif
}
else
{