diff --git a/lib/ldap.c b/lib/ldap.c
index 70b9a1cac09a16c1658f6054d138607866595d98..b34d27d61f3c4ad27e484517561bd0ae63e77cdf 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -95,7 +95,7 @@ typedef struct {
   TCHAR  *lud_filter;
 #else
   char   *lud_filter;
-#endif;
+#endif
   char  **lud_exts;
   size_t    lud_attrs_dups; /* how many were dup'ed, this field is not in the
                                "real" struct so can only be used in code