summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/libaddns/dnsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libaddns/dnsutils.c b/source/libaddns/dnsutils.c
index 6071d35d537..acf81a09c3b 100644
--- a/source/libaddns/dnsutils.c
+++ b/source/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;