aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mxget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mxget.c b/mxget.c
index 3f266c01..42ab26fb 100644
--- a/mxget.c
+++ b/mxget.c
@@ -49,6 +49,8 @@ struct mxentry *getmxrecords(const char *name)
static char MXHostBuf[PACKETSZ - HFIXEDSZ];
HEADER *hp;
+ pmx->name = (char *)NULL;
+ pmx->pref = -1;
n = res_search(name,C_IN,T_MX,(unsigned char*)&answer, sizeof(answer));
if (n == -1)
return((struct mxentry *)NULL);