summaryrefslogtreecommitdiff
path: root/src/resv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resv.c')
-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
{