diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c
index e2a9c0af291d87ee94ab212c74582940af60a393..fbd161b16acee9c5f4734088692193c390a2f421 100644
--- a/libraries/libldap/dnssrv.c
+++ b/libraries/libldap/dnssrv.c
@@ -43,8 +43,8 @@ int ldap_dn2domain(
 	LDAPRDN *rdn = NULL;
 	LDAPAVA *ava = NULL;
 	struct berval domain = { 0, NULL };
-	static struct berval DC = BER_BVC("DC");
-	static struct berval DCOID = BER_BVC("0.9.2342.19200300.100.1.25");
+	const static struct berval DC = BER_BVC("DC");
+	const static struct berval DCOID = BER_BVC("0.9.2342.19200300.100.1.25");
 
 	assert( dn_in != NULL );
 	assert( domainp != NULL );