Fix compiler warning.
diff --git a/src/edns0.c b/src/edns0.c
index c7a101e..d624225 100644
--- a/src/edns0.c
+++ b/src/edns0.c
@@ -304,7 +304,7 @@
/* http://tools.ietf.org/html/draft-vandergaast-edns-client-subnet-02 */
int len;
- void *addrp;
+ void *addrp = NULL;
int sa_family = source->sa.sa_family;
opt->source_netmask = 0;
@@ -344,7 +344,7 @@
len = 0;
- if (opt->source_netmask != 0)
+ if (addrp && opt->source_netmask != 0)
{
len = ((opt->source_netmask - 1) >> 3) + 1;
memcpy(opt->addr, addrp, len);