summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libaddns/dnsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libaddns/dnsutils.c b/source3/libaddns/dnsutils.c
index 6071d35d53..acf81a09c3 100644
--- a/source3/libaddns/dnsutils.c
+++ b/source3/libaddns/dnsutils.c
@@ -326,6 +326,7 @@ int32 DNSCopyDomainName( uint8 * pBuffer,
int32 DNSGenerateKeyName( char **ppszKeyName )
{
int32 dwError = 0;
+#if defined(WITH_DNS_UPDATES)
char *pszKeyName = NULL;
char szTemp[256];
char szBuffer[256];
@@ -348,6 +349,7 @@ int32 DNSGenerateKeyName( char **ppszKeyName )
return dwError;
error:
+#endif
*ppszKeyName = NULL;
return dwError;